platformer
Static Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Attributes | Properties | List of all members
UnityPlatformer.Log Class Reference

Log to file More...

Static Public Member Functions

static void SetLevel (LogLevel lvl)
 define current level More...
 
static void Write (LogLevel lvl, string s)
 Write to file More...
 
static void Error (string format, params System.Object[] values)
 Log an error message More...
 
static void Warning (string format, params System.Object[] values)
 Log a warning message More...
 
static void Info (string format, params System.Object[] values)
 Log an info message More...
 
static void Debug (string format, params System.Object[] values)
 Log debug message More...
 
static void Verbose (string format, params System.Object[] values)
 Log verbose More...
 
static void Silly (string format, params System.Object[] values)
 Log silly More...
 

Public Attributes

StreamWriter streamWriter = null
 file instance More...
 
LogLevel level = LogLevel.Silly
 Current log level More...
 

Protected Member Functions

 Log ()
 protected constructor for Singleton usage More...
 

Static Protected Attributes

static Log _instance
 real instance More...
 

Properties

static Log instance [get]
 Singleton More...
 

Detailed Description

Log to file

Constructor & Destructor Documentation

◆ Log()

UnityPlatformer.Log.Log ( )
inlineprotected

protected constructor for Singleton usage

Member Function Documentation

◆ Debug()

static void UnityPlatformer.Log.Debug ( string  format,
params System.Object []  values 
)
inlinestatic

Log debug message

◆ Error()

static void UnityPlatformer.Log.Error ( string  format,
params System.Object []  values 
)
inlinestatic

Log an error message

◆ Info()

static void UnityPlatformer.Log.Info ( string  format,
params System.Object []  values 
)
inlinestatic

Log an info message

◆ SetLevel()

static void UnityPlatformer.Log.SetLevel ( LogLevel  lvl)
inlinestatic

define current level

◆ Silly()

static void UnityPlatformer.Log.Silly ( string  format,
params System.Object []  values 
)
inlinestatic

Log silly

◆ Verbose()

static void UnityPlatformer.Log.Verbose ( string  format,
params System.Object []  values 
)
inlinestatic

Log verbose

◆ Warning()

static void UnityPlatformer.Log.Warning ( string  format,
params System.Object []  values 
)
inlinestatic

Log a warning message

◆ Write()

static void UnityPlatformer.Log.Write ( LogLevel  lvl,
string  s 
)
inlinestatic

Write to file

Member Data Documentation

◆ _instance

Log UnityPlatformer.Log._instance
staticprotected

real instance

◆ level

LogLevel UnityPlatformer.Log.level = LogLevel.Silly

Current log level

◆ streamWriter

StreamWriter UnityPlatformer.Log.streamWriter = null

file instance

Property Documentation

◆ instance

Log UnityPlatformer.Log.instance
staticgetprotected

Singleton


The documentation for this class was generated from the following file: