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, correlationId string, errors.ErrorDescription , message string) LogMessage
- level: LevelType - log level.
- source: string - source.
- correlationId: string - transaction id used to trace execution through the call chain.
- err: errors.ErrorDescription - error object associated with this message.
- message: string - human-readable message to log.