LogRecord class
A log entry representation used to propagate information from Logger to
individual Handler
s.
class LogRecord { final Level level; final String message; /** Logger where this record is stored. */ final String loggerName; /** Time when this record was created. */ final Date time; /** Unique sequence number greater than all log records created before it. */ final int sequenceNumber; static int _nextNumber = 0; /** Associated exception (if any) when recording errors messages. */ Exception exception; /** Associated exception message (if any) when recording errors messages. */ String exceptionText; LogRecord( this.level, this.message, this.loggerName, [time, this.exception, this.exceptionText]) : this.time = (time == null) ? new Date.now() : time, this.sequenceNumber = LogRecord._nextNumber++; }
Constructors
new LogRecord(Level level, String message, String loggerName, [time, Exception exception, String exceptionText]) #
LogRecord( this.level, this.message, this.loggerName, [time, this.exception, this.exceptionText]) : this.time = (time == null) ? new Date.now() : time, this.sequenceNumber = LogRecord._nextNumber++;
Properties
Exception exception #
Associated exception (if any) when recording errors messages.
Exception exception;
String exceptionText #
Associated exception message (if any) when recording errors messages.
String exceptionText;