org.kuali.student.common.ui.client.logging
Class Logger
java.lang.Object
org.kuali.student.common.ui.client.logging.Logger
public class Logger
- extends Object
Method Summary |
private static void |
appendStackTrace(Throwable t,
StringBuilder s)
|
static void |
debug(String message)
|
static void |
debug(String message,
Throwable error)
|
static void |
error(String message)
|
static void |
error(String message,
Throwable error)
|
static void |
fatal(String message)
|
static void |
fatal(String message,
Throwable error)
|
private static String |
formatLog(List<LogMessage> messages)
|
static Map<String,String> |
getClientContextInfo()
|
static LogLevel |
getLogLevel()
|
static void |
info(String message)
|
static void |
info(String message,
Throwable error)
|
static void |
log(LogLevel level,
String message)
|
static void |
log(LogLevel level,
String message,
Throwable error)
|
static void |
log(LogMessage message)
|
static void |
reset()
|
static void |
sendLogs()
|
static void |
setLogLevel(LogLevel level)
|
static void |
setMaxBufferSize(int maxSize)
Sets the maximum buffer size, resizing buffer if necessary. |
static void |
warn(String message)
|
static void |
warn(String message,
Throwable error)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logLevel
static LogLevel logLevel
- Default log level is LogLevel.WARN
buffer
static LogBuffer buffer
clientContextInfo
static Map<String,String> clientContextInfo
maxBufferSize
static int maxBufferSize
Logger
public Logger()
setMaxBufferSize
public static void setMaxBufferSize(int maxSize)
- Sets the maximum buffer size, resizing buffer if necessary.
Can be an expensive operation, avoid frequent use.
- Parameters:
maxSize
-
setLogLevel
public static void setLogLevel(LogLevel level)
getLogLevel
public static LogLevel getLogLevel()
log
public static void log(LogMessage message)
log
public static void log(LogLevel level,
String message)
log
public static void log(LogLevel level,
String message,
Throwable error)
debug
public static void debug(String message)
debug
public static void debug(String message,
Throwable error)
info
public static void info(String message)
info
public static void info(String message,
Throwable error)
warn
public static void warn(String message)
warn
public static void warn(String message,
Throwable error)
error
public static void error(String message)
error
public static void error(String message,
Throwable error)
fatal
public static void fatal(String message)
fatal
public static void fatal(String message,
Throwable error)
reset
public static void reset()
getClientContextInfo
public static Map<String,String> getClientContextInfo()
sendLogs
public static void sendLogs()
formatLog
private static String formatLog(List<LogMessage> messages)
appendStackTrace
private static void appendStackTrace(Throwable t,
StringBuilder s)
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.