LogMessage
Data object used to store captured log messages.
Description
The LogMessage class allows you to create data objects used to store captured log messages.
Important points
- This object is used by CachedLogger.
Constructors
NewLogMessage(level LevelType, source string, context IContext, errors.ErrorDescription , message string) LogMessage
- level: LevelType - log level.
- source: string - source.
- context: IContext - a context to trace execution through a call chain.
- err: errors.ErrorDescription - error object associated with this message.
- message: string - human-readable message to log.