Files
narya/src/java/com/threerings/media/Log.java
T
Michael Bayne dd5ce99781 Added access to getLevel().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1981 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-22 01:53:53 +00:00

46 lines
947 B
Java

//
// $Id: Log.java,v 1.2 2002/11/22 01:53:53 mdb Exp $
package com.threerings.media;
/**
* A placeholder class that contains a reference to the log object used by
* the media services package.
*/
public class Log
{
public static final String PACKAGE = "media";
public static com.samskivert.util.Log log =
new com.samskivert.util.Log(PACKAGE);
/** Convenience function. */
public static void debug (String message)
{
log.debug(message);
}
/** Convenience function. */
public static void info (String message)
{
log.info(message);
}
/** Convenience function. */
public static void warning (String message)
{
log.warning(message);
}
/** Convenience function. */
public static void logStackTrace (Throwable t)
{
log.logStackTrace(com.samskivert.util.Log.WARNING, t);
}
public static int getLevel ()
{
return log.getLevel(PACKAGE);
}
}