org.openmdx.kernel.log
Class LogUtil
java.lang.Object
org.openmdx.kernel.log.LogUtil
public class LogUtil
- extends Object
|
Method Summary |
static int |
logLevelFromString(String logLevel)
Parses a log level in a short or a long format to integer log level |
static String |
logLevelToStringLong(int logLevel)
Returns a string representation of the log level in a long format
("CRITICAL", "ERRROR", ... |
static String |
logLevelToStringShort(int logLevel)
Returns a string representation of the log level in a short format
("L1", "L2", ... |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogUtil
public LogUtil()
logLevelToStringShort
public static String logLevelToStringShort(int logLevel)
- Returns a string representation of the log level in a short format
("L1", "L2", ... , "LP", "LS")
- Parameters:
logLevel - A log level
- Returns:
- String A String
logLevelToStringLong
public static String logLevelToStringLong(int logLevel)
- Returns a string representation of the log level in a long format
("CRITICAL", "ERRROR", ... , "PERFORMANCE", "STATISTICS")
- Parameters:
logLevel - A log level
- Returns:
- A stringified log level
logLevelFromString
public static int logLevelFromString(String logLevel)
- Parses a log level in a short or a long format to integer log level
- Parameters:
logLevel - A stringified log level
- Returns:
- int A log level
This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.