C# Class fCraft.Logger

Central logging class. Logs to file, relays messages to the frontend, submits crash reports.
Afficher le fichier Open project: GlennMR/800craft Class Usage Examples

Méthodes publiques

Свойство Type Description
ConsoleOptions bool[]
LogFileOptions bool[]
SplittingType LogSplittingType

Méthodes publiques

Méthode Description
CheckForCommonErrors ( [ ex ) : bool
EventTraceNotifier ( int eventIndex, EventArgs e ) : void
LogAndReportCrash ( [ message, [ assembly, [ exception, bool shutdownImminent ) : void
LogToConsole ( [ message ) : void

Private Methods

Méthode Description
AddEventHook ( TypeBuilder typeBuilder, Type methodParams, Type returnType, int eventIndex ) : void
GetPrefix ( LogType level ) : string
LoadTracingSettings ( ) : void
Log ( LogType type, [ message ) : void
Logger ( ) : System.Reflection.Emit
MarkLogStart ( ) : void
PrepareEventTracing ( ) : void
RaiseCrashedEvent ( CrashedEventArgs e ) : void
RaiseLoggedEvent ( [ rawMessage, [ line, LogType logType ) : void

Method Details

CheckForCommonErrors() public static méthode

public static CheckForCommonErrors ( [ ex ) : bool
ex [
Résultat bool

EventTraceNotifier() public static méthode

public static EventTraceNotifier ( int eventIndex, EventArgs e ) : void
eventIndex int
e System.EventArgs
Résultat void

LogAndReportCrash() public static méthode

public static LogAndReportCrash ( [ message, [ assembly, [ exception, bool shutdownImminent ) : void
message [
assembly [
exception [
shutdownImminent bool
Résultat void

LogToConsole() public static méthode

public static LogToConsole ( [ message ) : void
message [
Résultat void

Property Details

ConsoleOptions public_oe static_oe property

public static bool[] ConsoleOptions
Résultat bool[]

LogFileOptions public_oe static_oe property

public static bool[] LogFileOptions
Résultat bool[]

SplittingType public_oe static_oe property

public static LogSplittingType SplittingType
Résultat LogSplittingType