ILoggerLog Method (Byte, String, String, String, String) |
A Sandcastle Documented Class Library |
Insert one row into Log
Calling log from the web api
Namespace: NSG.Library.Logger
Assembly: NSG.Library.Logger (in NSG.Library.Logger.dll) Version: 1.0.1.17 (1.0.1.17)
Syntax
long Log( byte severity, string user, string method, string message, string exception = "" )
Function Log ( severity As Byte, user As String, method As String, message As String, Optional exception As String = "" ) As Long
long long Log( unsigned char severity, String^ user, String^ method, String^ message, String^ exception = L"" )
abstract Log : severity : byte * user : string * method : string * message : string * ?exception : string (* Defaults: let _exception = defaultArg exception "" *) -> int64
Parameters
- severity
- Type: SystemByte
Range of byte: "0", "4" See 'LoggingLevel' enum, must be between 0 and 4 - user
- Type: SystemString
The user identity - method
- Type: SystemString
method calling log - message
- Type: SystemString
the log message - exception (Optional)
- Type: SystemString
the exception, including the stack trace
Return Value
Type: Int64the id
See Also