C# 클래스 Zazzles.Log

Handle all interaction with the log file
파일 보기 프로젝트 열기: FOGProject/zazzles

공개 메소드들

메소드 설명
Action ( string action ) : void
ActionFail ( ) : void

Log a colored [Fail]

ActionPass ( ) : void

Log a colored [Pass]

ActionResult ( bool success ) : void
Debug ( string caller, string message ) : void
Divider ( ) : void

Write a divider to the log

Entry ( Level level, string caller, string message ) : void

Entry a message

Entry ( string caller, string message ) : void

Entry a message

Error ( string caller, Exception ex ) : void
Error ( string caller, string message ) : void
Header ( string text ) : void

Write a header to the log

NewLine ( ) : void

Write a new line to the log

PaddedHeader ( string text ) : void

Create one header with a divider above and below it

UnhandledException ( object sender, UnhandledExceptionEventArgs ex ) : void
Write ( Level level, string text, ConsoleColor color = ConsoleColor.White ) : void

Write text to the log

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

Write text to the log

WriteLine ( Level level, string line, ConsoleColor color = ConsoleColor.White ) : void

Write a line to the log

WriteLine ( string line, ConsoleColor color = ConsoleColor.White ) : void

Write a line to the log

비공개 메소드들

메소드 설명
CleanLog ( FileSystemInfo logFile ) : void

Wipe the log

Log ( ) : System
MessageToJSON ( string message ) : Newtonsoft.Json.Linq.JObject

메소드 상세

Action() 공개 정적인 메소드

public static Action ( string action ) : void
action string
리턴 void

ActionFail() 공개 정적인 메소드

Log a colored [Fail]
public static ActionFail ( ) : void
리턴 void

ActionPass() 공개 정적인 메소드

Log a colored [Pass]
public static ActionPass ( ) : void
리턴 void

ActionResult() 공개 정적인 메소드

public static ActionResult ( bool success ) : void
success bool
리턴 void

Debug() 공개 정적인 메소드

public static Debug ( string caller, string message ) : void
caller string
message string
리턴 void

Divider() 공개 정적인 메소드

Write a divider to the log
public static Divider ( ) : void
리턴 void

Entry() 공개 정적인 메소드

Entry a message
public static Entry ( Level level, string caller, string message ) : void
level Level The logging level
caller string The name of the calling method or class
message string The message to log
리턴 void

Entry() 공개 정적인 메소드

Entry a message
public static Entry ( string caller, string message ) : void
caller string The name of the calling method or class
message string The message to log
리턴 void

Error() 공개 정적인 메소드

public static Error ( string caller, Exception ex ) : void
caller string
ex System.Exception
리턴 void

Error() 공개 정적인 메소드

public static Error ( string caller, string message ) : void
caller string
message string
리턴 void

Header() 공개 정적인 메소드

Write a header to the log
public static Header ( string text ) : void
text string The text to put in the center of the header
리턴 void

NewLine() 공개 정적인 메소드

Write a new line to the log
public static NewLine ( ) : void
리턴 void

PaddedHeader() 공개 정적인 메소드

Create one header with a divider above and below it
public static PaddedHeader ( string text ) : void
text string The text to put in the center of the header
리턴 void

UnhandledException() 공개 정적인 메소드

public static UnhandledException ( object sender, UnhandledExceptionEventArgs ex ) : void
sender object
ex System.UnhandledExceptionEventArgs
리턴 void

Write() 공개 정적인 메소드

Write text to the log
public static Write ( Level level, string text, ConsoleColor color = ConsoleColor.White ) : void
level Level The logging level
text string The text to write
color ConsoleColor The color of the text if in Console mode, White will use the default color
리턴 void

Write() 공개 정적인 메소드

Write text to the log
public static Write ( string text, ConsoleColor color = ConsoleColor.White ) : void
text string The text to write
color ConsoleColor The color of the text if in Console mode
리턴 void

WriteLine() 공개 정적인 메소드

Write a line to the log
public static WriteLine ( Level level, string line, ConsoleColor color = ConsoleColor.White ) : void
level Level The logging level
line string The line to write
color ConsoleColor The color of the text if in Console mode
리턴 void

WriteLine() 공개 정적인 메소드

Write a line to the log
public static WriteLine ( string line, ConsoleColor color = ConsoleColor.White ) : void
line string The line to write
color ConsoleColor The color of the text if in Console mode
리턴 void