ListLogger.Log Method (Byte, String, String, String, String)

NSG Library Logger

ListLoggerLog 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

public long Log(
	byte severity,
	string user,
	string method,
	string message,
	string exception = ""
)
Public Function Log ( 
	severity As Byte,
	user As String,
	method As String,
	message As String,
	Optional exception As String = ""
) As Long
public:
virtual long long Log(
	unsigned char severity, 
	String^ user, 
	String^ method, 
	String^ message, 
	String^ exception = L""
) sealed
abstract Log : 
        severity : byte * 
        user : string * 
        method : string * 
        message : string * 
        ?exception : string 
(* Defaults:
        let _exception = defaultArg exception ""
*)
-> int64 
override 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: Int64
the id

Implements

ILoggerLog(Byte, String, String, String, String)
See Also

Reference