Space Engineers
Classes | Public Member Functions | Static Public Attributes | Properties | List of all members
VRage.Utils.MyLog Class Reference

Classes

struct  IndentToken
 

Public Member Functions

 MyLog (bool alwaysFlush=false)
 
void Init (string logFileName, StringBuilder appVersionString)
 
string GetFilePath ()
 
IndentToken IndentUsing (LoggingOptions options=LoggingOptions.NONE)
 
void IncreaseIndent (LoggingOptions option)
 
void IncreaseIndent ()
 
bool IsIndentKeyIncreased ()
 
void DecreaseIndent (LoggingOptions option)
 
void DecreaseIndent ()
 
void Close ()
 
void AppendToClosedLog (string text)
 
void AppendToClosedLog (Exception e)
 
bool LogFlag (LoggingOptions option)
 
void WriteLine (string message, LoggingOptions option)
 
void WriteLine (Exception ex)
 
void WriteLineAndConsole (string msg)
 
void WriteLine (string msg)
 
TextWriter GetTextWriter ()
 
void WriteMemoryUsage (string prefixText)
 
void LogThreadPoolInfo ()
 
void Log (MyLogSeverity severity, string format, params object[] args)
 
void Log (MyLogSeverity severity, StringBuilder builder)
 
void Flush ()
 

Static Public Attributes

static MyLogSeverity AssertLevel = (MyLogSeverity)(byte.MaxValue)
 

Properties

static MyLog Default [get, set]
 
LoggingOptions Options [get, set]
 
bool LogEnabled [get]
 

Detailed Description

Definition at line 49 of file MyLog.cs.

Constructor & Destructor Documentation

VRage.Utils.MyLog.MyLog ( bool  alwaysFlush = false)
inline

Definition at line 140 of file MyLog.cs.

Member Function Documentation

void VRage.Utils.MyLog.AppendToClosedLog ( string  text)
inline

Definition at line 318 of file MyLog.cs.

void VRage.Utils.MyLog.AppendToClosedLog ( Exception  e)
inline

Definition at line 330 of file MyLog.cs.

void VRage.Utils.MyLog.Close ( )
inline

Definition at line 295 of file MyLog.cs.

void VRage.Utils.MyLog.DecreaseIndent ( LoggingOptions  option)
inline

Definition at line 231 of file MyLog.cs.

void VRage.Utils.MyLog.DecreaseIndent ( )
inline

Definition at line 239 of file MyLog.cs.

void VRage.Utils.MyLog.Flush ( )
inline

Definition at line 609 of file MyLog.cs.

string VRage.Utils.MyLog.GetFilePath ( )
inline

Definition at line 174 of file MyLog.cs.

TextWriter VRage.Utils.MyLog.GetTextWriter ( )
inline

Definition at line 425 of file MyLog.cs.

void VRage.Utils.MyLog.IncreaseIndent ( LoggingOptions  option)
inline

Definition at line 187 of file MyLog.cs.

void VRage.Utils.MyLog.IncreaseIndent ( )
inline

Definition at line 195 of file MyLog.cs.

IndentToken VRage.Utils.MyLog.IndentUsing ( LoggingOptions  options = LoggingOptions.NONE)
inline

Definition at line 182 of file MyLog.cs.

void VRage.Utils.MyLog.Init ( string  logFileName,
StringBuilder  appVersionString 
)
inline

Definition at line 145 of file MyLog.cs.

bool VRage.Utils.MyLog.IsIndentKeyIncreased ( )
inline

Definition at line 215 of file MyLog.cs.

void VRage.Utils.MyLog.Log ( MyLogSeverity  severity,
string  format,
params object[]  args 
)
inline

Definition at line 557 of file MyLog.cs.

void VRage.Utils.MyLog.Log ( MyLogSeverity  severity,
StringBuilder  builder 
)
inline

Definition at line 583 of file MyLog.cs.

bool VRage.Utils.MyLog.LogFlag ( LoggingOptions  option)
inline

Definition at line 342 of file MyLog.cs.

void VRage.Utils.MyLog.LogThreadPoolInfo ( )
inline

Definition at line 441 of file MyLog.cs.

void VRage.Utils.MyLog.WriteLine ( string  message,
LoggingOptions  option 
)
inline

Definition at line 347 of file MyLog.cs.

void VRage.Utils.MyLog.WriteLine ( Exception  ex)
inline

Definition at line 374 of file MyLog.cs.

void VRage.Utils.MyLog.WriteLine ( string  msg)
inline

Definition at line 397 of file MyLog.cs.

void VRage.Utils.MyLog.WriteLineAndConsole ( string  msg)
inline

Definition at line 385 of file MyLog.cs.

void VRage.Utils.MyLog.WriteMemoryUsage ( string  prefixText)
inline

Definition at line 435 of file MyLog.cs.

Member Data Documentation

MyLogSeverity VRage.Utils.MyLog.AssertLevel = (MyLogSeverity)(byte.MaxValue)
static

Definition at line 104 of file MyLog.cs.

Property Documentation

MyLog VRage.Utils.MyLog.Default
staticgetset

Definition at line 121 of file MyLog.cs.

bool VRage.Utils.MyLog.LogEnabled
get

Definition at line 133 of file MyLog.cs.

LoggingOptions VRage.Utils.MyLog.Options
getset

Definition at line 127 of file MyLog.cs.


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