C# Class Utilities.Logger.LogEvent

A record in the log.
Mostra 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_oe property

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

Computer public_oe property

Name of the computer.
public string Computer
return string

CreateTime public_oe property

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

Error public_oe property

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

Ex public_oe property

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

FinalMessage public_oe property

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

Level public_oe property

The log level.
public LogLevel Level
return LogLevel

LogType public_oe property

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

Message public_oe property

Message that is logged.
public object Message
return object

ThreadName public_oe property

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

UserName public_oe property

Name of the user.
public string UserName
return string