debug.LogRecord Extends Object
LogRecord objects are used to pass logging requests between the logging framework and individual log Handlers.

Inheritance

Object
     goog.debug.LogRecord

Constructor

goog.debug.LogRecord(levelmsgloggerNameopt_timeopt_sequenceNumber)

Parameters

level :
One of the level identifiers.
msg :
The string message.
loggerName :
The name of the source logger.
opt_time :
Time this log record was created if other than now. If 0, we use #goog.now.
opt_sequenceNumber :
Sequence number of this log record. This should only be passed in when restoring a log record from persistence.

Instance Methods

Public Protected Private
getException()
Get the exception that is part of the log record.
Returns:   the exception.
code »
getExceptionText()
Get the exception text that is part of the log record.
Returns:   Exception text.
code »
getLevel()
Get the logging message level, for example Level.SEVERE.
Returns:   the logging message level.
code »
getLoggerName()
Get the source Logger's name.
Returns:   source logger name (may be null).
code »
getMessage()
Get the "raw" log message, before localization or formatting.
Returns:   the raw message string.
code »
getMillis()
Get event time in milliseconds since 1970.
Returns:   event time in millis since 1970.
code »
getSequenceNumber()
Get the sequence number.

Sequence numbers are normally assigned in the LogRecord constructor, which assigns unique sequence numbers to each new LogRecord in increasing order.

Returns:   the sequence number.
code »
setException(exception)
Set the exception that is part of the log record.
Arguments:
exception :
the exception.
code »
setExceptionText(text)
Set the exception text that is part of the log record.
Arguments:
text :
The exception text.
code »
setLevel(level)
Set the logging message level, for example Level.SEVERE.
Arguments:
level :
the logging message level.
code »
setLoggerName(loggerName)
Get the source Logger's name.
Arguments:
loggerName :
source logger name (may be null).
code »
setMessage(msg)
Set the "raw" log message, before localization or formatting.
Arguments:
msg :
the raw message string.
code »
setMillis(time)
Set event time in milliseconds since 1970.
Arguments:
time :
event time in millis since 1970.
code »

Instance Properties

exceptionText_ :
Exception text associated with the record
Code »
exception_ :
Exception associated with the record
Code »

Static Properties

goog.debug.LogRecord.nextSequenceNumber_ :
A sequence counter for assigning increasing sequence numbers to LogRecord objects.
Code »

Package debug

Package Reference