C# Class CSharpLogger.Logger

Datei anzeigen Open project: utensil/lolmodelviewer

Public Methods

Method Description
Close ( ) : void

Call to close the filestream

Error ( String message ) : void

Logs an error

Event ( String message ) : void

Logs an event

HoldFlushes ( ) : void

Stops all filewriting and holds all logging in a buffer until RestartFlushes() is called

Logger ( String filePath ) : System

Allows easy logging of errors, warnings, and events

RestartFlushes ( ) : void

Logging will flush to file after each log call. Forces an immediate flush

Warning ( String message ) : void

Logs a warning

Private Methods

Method Description
Flush ( ) : void

Method Details

Close() public method

Call to close the filestream
public Close ( ) : void
return void

Error() public method

Logs an error
public Error ( String message ) : void
message String The message to explain the error
return void

Event() public method

Logs an event
public Event ( String message ) : void
message String The message to explain the event
return void

HoldFlushes() public method

Stops all filewriting and holds all logging in a buffer until RestartFlushes() is called
public HoldFlushes ( ) : void
return void

Logger() public method

Allows easy logging of errors, warnings, and events
public Logger ( String filePath ) : System
filePath String
return System

RestartFlushes() public method

Logging will flush to file after each log call. Forces an immediate flush
public RestartFlushes ( ) : void
return void

Warning() public method

Logs a warning
public Warning ( String message ) : void
message String The message to explain the warning
return void