goog.debug.LogRecord
Classgoog.debug.LogRecord(level, msg, loggerName, opt_time, opt_sequenceNumber)
LogRecord objects are used to pass logging requests between the logging framework and individual log Handlers.
level
{goog.debug.Logger.Level
}
msg
{string
}
loggerName
{string
}
opt_time
{number
=}
opt_sequenceNumber
{number
=}
.ENABLE_SEQUENCE_NUMBERS
.getException()
Get the exception that is part of the log record.
Object
}
.getExceptionText()
Get the exception text that is part of the log record.
string
}
.getLevel()
Get the logging message level, for example Level.SEVERE.
goog.debug.Logger.Level
}
.getLoggerName()
Get the source Logger's name.
string
}
.getMessage()
Get the "raw" log message, before localization or formatting.
string
}
.getMillis()
Get event time in milliseconds since 1970.
number
}
.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.
number
}
.reset(level, msg, loggerName, opt_time, opt_sequenceNumber)
Sets all fields of the log record.
level
{goog.debug.Logger.Level
}
msg
{string
}
loggerName
{string
}
opt_time
{number
=}
opt_sequenceNumber
{number
=}
.setException(exception)
Set the exception that is part of the log record.
exception
{Object
}
.setExceptionText(text)
Set the exception text that is part of the log record.
text
{string
}
.setLevel(level)
Set the logging message level, for example Level.SEVERE.
level
{goog.debug.Logger.Level
}
.setLoggerName(loggerName)
Get the source Logger's name.
loggerName
{string
}
.setMessage(msg)
Set the "raw" log message, before localization or formatting.
msg
{string
}
.setMillis(time)
Set event time in milliseconds since 1970.
time
{number
}