DevLogLogMessage Method (String, String, String, String, LogMessageLevel, LogCategory, Guid) |
Logs a warning to the devlog
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static void LogMessage(
string Source,
string ID,
string Msg,
string ExceptionInfo,
LogMessageLevel Level,
LogCategory Category,
Guid bracketingID
)
Public Shared Sub LogMessage (
Source As String,
ID As String,
Msg As String,
ExceptionInfo As String,
Level As LogMessageLevel,
Category As LogCategory,
bracketingID As Guid
)
Parameters
- Source
- Type: SystemString
The source of the log message. Typically, this is the method name. - ID
- Type: SystemString
The ID of the log. Log messages should generally have the class or component as a prefix.
For example: For the database class, IDs look like this:
db.connectFailNoConnectStr
db.openCalledWithInvalidArgs
- Msg
- Type: SystemString
The message - ExceptionInfo
- Type: SystemString
The information from the exception (stack trace) - Level
- Type: NetQuarryLogMessageLevel
The level or severity of the message. Must be one of the values from LogMessageLevel. - Category
- Type: NetQuarryLogCategory
The log category. - bracketingID
- Type: SystemGuid
ID to use for bracketing in the viewer
See Also