C# Class Utilities.Logger.LogEvent

A record in the log.
Show file Open project: feanz/Utilities

Public Properties

Property Type Description
Args object[]
Computer string
CreateTime System.DateTime
Error System.Exception
Ex System.Exception
FinalMessage string
Level LogLevel
LogType System.Type
Message object
ThreadName string
UserName string

Public Methods

Method Description
LogEvent ( ) : System

Enable default constructor.

LogEvent ( LogLevel level, string message, Exception ex ) : System

Initialize log event using loglevel, errorMessage and exception

Method Details

LogEvent() public method

Enable default constructor.
public LogEvent ( ) : System
return System

LogEvent() public method

Initialize log event using loglevel, errorMessage and exception
public LogEvent ( LogLevel level, string message, Exception ex ) : System
level LogLevel Event log level.
message string
ex System.Exception Exception to log.
return System

Property Details

Args public property

Additional arguments passed by caller.
public object[] Args
return object[]

Computer public property

Name of the computer.
public string Computer
return string

CreateTime public property

Create time.
public DateTime,System CreateTime
return System.DateTime

Error public property

Exception passed.
public Exception,System Error
return System.Exception

Ex public property

The exception.
public Exception,System Ex
return System.Exception

FinalMessage public property

This is the final errorMessage that is printed.
public string FinalMessage
return string

Level public property

The log level.
public LogLevel Level
return LogLevel

LogType public property

The data type of the caller that is logging the event.
public Type,System LogType
return System.Type

Message public property

Message that is logged.
public object Message
return object

ThreadName public property

The name of the currently executing thread that created this log entry.
public string ThreadName
return string

UserName public property

Name of the user.
public string UserName
return string