Added levelToString().

git-svn-id: https://samskivert.googlecode.com/svn/trunk@1017 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2003-01-15 01:23:21 +00:00
parent 5109821d5c
commit 2ed48e964a
@@ -1,5 +1,5 @@
//
// $Id: Log.java,v 1.9 2002/11/21 22:41:53 mdb Exp $
// $Id: Log.java,v 1.10 2003/01/15 01:23:21 mdb Exp $
//
// samskivert library - useful routines for java programs
// Copyright (C) 2001 Michael Bayne
@@ -187,6 +187,19 @@ public final class Log
}
}
/**
* Returns a string representation of the specified log level.
*/
public static String levelToString (int level)
{
switch (level) {
case DEBUG: return "DEBUG";
case INFO: return "INFO";
case WARNING: return "WARNING";
default: return "UNKNOWN";
}
}
/**
* Checks the <code>log_provider</code> system property to see if a
* log provider has been specified. Installs it if so. Checks the