LogFragment class

日志片段

Constructors

LogFragment(Level level, String message, String loggerName, [String error, String stackTrace, String profile, int port, String traceId, String userId])

Properties

error String
Error message
final
hashCode int
The hash code for this object.
read-onlyinherited
level Level
Log level
final
loggerName String
Logger name, general is class name
final
message String
Message to print
final
port int
Server port
final
profile String
Active profile
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
stackTrace String
StackTrace to find code quickly in error log
final
traceId String
MicroService Trace ID
final
userId String
Request User ID
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromLogRecord(LogRecord record) LogFragment