Log events
- Last Updated: October 20, 2023
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
The OpenEdge Logger framework creates a LogEvent object for each log message defined using ILogWriter interface methods like Info(),
Warn(), Error(),
etc. Each LogEvent object has the following
properties:
| Property | Type | Required? | Description |
|---|---|---|---|
Logger |
OpenEdge.Logging.ILogWriter |
No | The name of the logging configuration. |
LogLevel |
OpenEdge.Logging.LogLevelEnum |
Yes | The log level of the event, as defined in the
ILogWriter interface
method. |
TimeStamp |
datetime-tz |
No | The timestamp of the event. |
Message |
OpenEdge.Logging.LogMessage |
Yes | Log message object containing the log message. |
Error |
Progress.Lang.Error |
No | Errors, if any are thrown. |
CallStack |
Character
array |
No | The current stack trace of where the log event occurred. This property is populated only when the log level is DEBUG or TRACE. |
LoggerBy |
handle |
No | The user logging this event. This is obtained
from the SECURITY-POLICY system
handle. |
LoggerShortName |
character |
No | The short-name of the logging configuration that
is responsible for processing the log event. The short name is the
logger name with the ShortNameFormat applied. |
ShortNameFormat |
character |
No | The short name format of the logging configuration that is responsible for processing the log event. |