ILogger.Log Method (LoggingLevel, String, MethodBase, String, Exception)

NSG Library Logger

ILoggerLog Method (LoggingLevel, String, MethodBase, String, Exception)

A Sandcastle Documented Class Library
Insert one row into Log (Calling log from C#)

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(
	LoggingLevel severity,
	string user,
	MethodBase method,
	string message,
	Exception exception = null
)
Function Log ( 
	severity As LoggingLevel,
	user As String,
	method As MethodBase,
	message As String,
	Optional exception As Exception = Nothing
) As Long
long long Log(
	LoggingLevel severity, 
	String^ user, 
	MethodBase^ method, 
	String^ message, 
	Exception^ exception = nullptr
)
abstract Log : 
        severity : LoggingLevel * 
        user : string * 
        method : MethodBase * 
        message : string * 
        ?exception : Exception 
(* Defaults:
        let _exception = defaultArg exception null
*)
-> int64 

Parameters

severity
Type: NSG.Library.LoggerLoggingLevel
Enum of 'LoggingLevel', must be between 0 and 4
user
Type: SystemString
The user identity
method
Type: System.ReflectionMethodBase
MethodBase
message
Type: SystemString
the log message
exception (Optional)
Type: SystemException
the exception, including the stack trace

Return Value

Type: Int64
the id
See Also

Reference