C# Class kOS.KSPLogger

Inheritance: Logger
Show file Open project: KSP-KOS/KOS

Public Methods

Method Description
KSPLogger ( ) : System
KSPLogger ( SharedObjects shared ) : System
Log ( Exception e ) : void
Log ( string text ) : void
LogError ( string s ) : void
LogException ( Exception exception ) : void
LogWarning ( string s ) : void
LogWarningAndScreen ( string s ) : void

Private Methods

Method Description
BuildLocationString ( GlobalPath path, int line ) : string
GetSourceLine ( GlobalPath path, int line ) : string
TraceLog ( ) : string

Return a list of strings containing the trace log of the call stack that got to the current point.

Method Details

KSPLogger() public method

public KSPLogger ( ) : System
return System

KSPLogger() public method

public KSPLogger ( SharedObjects shared ) : System
shared SharedObjects
return System

Log() public method

public Log ( Exception e ) : void
e System.Exception
return void

Log() public method

public Log ( string text ) : void
text string
return void

LogError() public method

public LogError ( string s ) : void
s string
return void

LogException() public method

public LogException ( Exception exception ) : void
exception System.Exception
return void

LogWarning() public method

public LogWarning ( string s ) : void
s string
return void

LogWarningAndScreen() public method

public LogWarningAndScreen ( string s ) : void
s string
return void