C# Class UnityPlatformer.Log

Log to file
Datei anzeigen Open project: llafuente/unity-platformer

Public Properties

Property Type Description
level LogLevel
streamWriter System.IO.StreamWriter

Protected Properties

Property Type Description
_instance Log

Public Methods

Method Description
Debug ( string format ) : void

Log debug message

Error ( string format ) : void

Log an error message

Info ( string format ) : void

Log an info message

SetLevel ( LogLevel lvl ) : void
Silly ( string format ) : void

Log silly

Verbose ( string format ) : void

Log verbose

Warning ( string format ) : void

Log a warning message

Write ( LogLevel lvl, string s ) : void

Write to file

Protected Methods

Method Description
Log ( ) : UnityEngine

protected constructor for Singleton usage

Method Details

Debug() static public method

Log debug message
static public Debug ( string format ) : void
format string
return void

Error() static public method

Log an error message
static public Error ( string format ) : void
format string
return void

Info() static public method

Log an info message
static public Info ( string format ) : void
format string
return void

Log() protected method

protected constructor for Singleton usage
protected Log ( ) : UnityEngine
return UnityEngine

SetLevel() static public method

static public SetLevel ( LogLevel lvl ) : void
lvl LogLevel
return void

Silly() static public method

Log silly
static public Silly ( string format ) : void
format string
return void

Verbose() static public method

Log verbose
static public Verbose ( string format ) : void
format string
return void

Warning() static public method

Log a warning message
static public Warning ( string format ) : void
format string
return void

Write() static public method

Write to file
static public Write ( LogLevel lvl, string s ) : void
lvl LogLevel
s string
return void

Property Details

_instance protected_oe static_oe property

real instance
protected static Log _instance
return Log

level public_oe property

Current log level
public LogLevel level
return LogLevel

streamWriter public_oe property

file instance
public StreamWriter,System.IO streamWriter
return System.IO.StreamWriter