C# Class Dbot.Utility.Logger

Exibir arquivo Open project: destinygg/bot

Public Properties

Property Type Description
SaveToFile bool

Public Methods

Method Description
Close ( ) : void
ErrorLog ( Exception exception ) : void
ErrorLog ( string text ) : void
Init ( ) : void
Write ( string text, ConsoleColor color = ConsoleColor.White ) : void
WriteExceptionDetails ( Exception exception, StringBuilder builderToFill, int level ) : void

Method Details

Close() public static method

public static Close ( ) : void
return void

ErrorLog() public static method

public static ErrorLog ( Exception exception ) : void
exception System.Exception
return void

ErrorLog() public static method

public static ErrorLog ( string text ) : void
text string
return void

Init() public static method

public static Init ( ) : void
return void

Write() public static method

public static Write ( string text, ConsoleColor color = ConsoleColor.White ) : void
text string
color ConsoleColor
return void

WriteExceptionDetails() public static method

public static WriteExceptionDetails ( Exception exception, StringBuilder builderToFill, int level ) : void
exception System.Exception
builderToFill StringBuilder
level int
return void

Property Details

SaveToFile public_oe static_oe property

public static bool SaveToFile
return bool