C# Class Helper.Logger

Logger class provides logging in standard and custom formats at different verbosity levels and custom output options.
Datei anzeigen Open project: jazzyjester/Mario-Game

Public Properties

Property Type Description
CONFIG_BUFFER_SIZE int
edt_Log System.Windows.Forms.RichTextBox
file_buffer string
file_path string
frm_Parent System.Windows.Forms.Form
loglevel int
loglevel_verbose int
using_text_box System.Boolean

Public Methods

Method Description
Dump_File ( string filename, string str ) : void
Dump_File ( string filename, string str, bool append ) : void
Log_Method ( ) : void
Logger ( ) : System
Step_In ( ) : void
Step_In ( string msg ) : void
Step_Out ( ) : void
Step_Out ( string msg ) : void
Write ( string msg ) : void
Write ( string msg, int loglevel ) : void
WriteLn ( string msg ) : void
WriteLn ( string msg, int loglevel ) : void

Private Methods

Method Description
Print ( string msg ) : void
SendMessage ( IntPtr window, int message, int wparam, int lparam ) : IntPtr

Method Details

Dump_File() public method

public Dump_File ( string filename, string str ) : void
filename string
str string
return void

Dump_File() public method

public Dump_File ( string filename, string str, bool append ) : void
filename string
str string
append bool
return void

Log_Method() public method

public Log_Method ( ) : void
return void

Logger() public method

public Logger ( ) : System
return System

Step_In() public method

public Step_In ( ) : void
return void

Step_In() public method

public Step_In ( string msg ) : void
msg string
return void

Step_Out() public method

public Step_Out ( ) : void
return void

Step_Out() public method

public Step_Out ( string msg ) : void
msg string
return void

Write() public method

public Write ( string msg ) : void
msg string
return void

Write() public method

public Write ( string msg, int loglevel ) : void
msg string
loglevel int
return void

WriteLn() public method

public WriteLn ( string msg ) : void
msg string
return void

WriteLn() public method

public WriteLn ( string msg, int loglevel ) : void
msg string
loglevel int
return void

Property Details

CONFIG_BUFFER_SIZE public_oe property

public int CONFIG_BUFFER_SIZE
return int

edt_Log public_oe property

public System.Windows.Forms.RichTextBox edt_Log
return System.Windows.Forms.RichTextBox

file_buffer public_oe property

public string file_buffer
return string

file_path public_oe property

public string file_path
return string

frm_Parent public_oe property

public System.Windows.Forms.Form frm_Parent
return System.Windows.Forms.Form

loglevel public_oe property

public int loglevel
return int

loglevel_verbose public_oe property

public int loglevel_verbose
return int

using_text_box public_oe property

public Boolean,System using_text_box
return System.Boolean