C# Class Utilities.Logger.LogEvent

A record in the log.
Afficher le fichier Open project: feanz/Utilities

Méthodes publiques

Свойство 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

Méthodes publiques

Méthode 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 méthode

Enable default constructor.
public LogEvent ( ) : System
Résultat System

LogEvent() public méthode

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.
Résultat System

Property Details

Args public_oe property

Additional arguments passed by caller.
public object[] Args
Résultat object[]

Computer public_oe property

Name of the computer.
public string Computer
Résultat string

CreateTime public_oe property

Create time.
public DateTime,System CreateTime
Résultat System.DateTime

Error public_oe property

Exception passed.
public Exception,System Error
Résultat System.Exception

Ex public_oe property

The exception.
public Exception,System Ex
Résultat System.Exception

FinalMessage public_oe property

This is the final errorMessage that is printed.
public string FinalMessage
Résultat string

Level public_oe property

The log level.
public LogLevel Level
Résultat LogLevel

LogType public_oe property

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

Message public_oe property

Message that is logged.
public object Message
Résultat object

ThreadName public_oe property

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

UserName public_oe property

Name of the user.
public string UserName
Résultat string