Pathfinder  v3.0
The definitive Hacknet programmable modding system
Pathfinder.Util.Logger Class Reference

Public Types

enum  LogLevel {
  LogLevel.VERBOSE = 1, LogLevel.DEBUG = 1 << 1, LogLevel.INFO = 1 << 2, LogLevel.WARN = 1 << 3,
  LogLevel.ERROR = 1 << 4, LogLevel.FATAL = 1 << 5, LogLevel.All = VERBOSE | DEBUG | INFO | WARN | ERROR | FATAL, LogLevel.None = 0,
  LogLevel.Default = FATAL | ERROR | WARN | INFO
}
 Log Levels for the Logger More...
 

Static Public Member Functions

static void AddFlag (LogLevel levels)
 Adds flag(s) to this T:Pathfinder.Util.Logger's flags. More...
 
static void SetFlags (LogLevel levels)
 Sets showFlags to exact levels. More...
 
static void RemoveFlag (LogLevel levels)
 Removes a flag(s) from this T:Pathfinder.Util.Logger's flags. More...
 
static bool HasFlag (LogLevel level)
 Determines whether this T:Pathfinder.Util.Logger has the flag(s). More...
 
static void Log (LogLevel level, params object[] input)
 Logs the specified level and input. More...
 
static void Verbose (params object[] input)
 Logs on T:Pathfinder.Util.Logger.LogLevel.VERBOSE the specified input. More...
 
static void Debug (params object[] input)
 Logs on T:Pathfinder.Util.Logger.LogLevel.DEBUG the specified input. More...
 
static void Info (params object[] input)
 Logs on T:Pathfinder.Util.Logger.LogLevel.INFO the specified input. More...
 
static void Warn (params object[] input)
 Logs on T:Pathfinder.Util.Logger.LogLevel.WARN the specified input. More...
 
static void Error (params object[] input)
 Logs on T:Pathfinder.Util.Logger.LogLevel.ERROR the specified input. More...
 
static void Fatal (params object[] input)
 Logs on T:Pathfinder.Util.Logger.LogLevel.FATAL the specified input. More...
 

Static Public Attributes

static readonly List< Type > DEFAULT_IGNORE_EVENTS = new List<Type>(new Type[] { typeof(Event.GameUpdateEvent) })
 
static IList< Tuple< LogLevel, string > > LogHistory => logHistory.AsReadOnly()
 Gets the log history. More...
 

Properties

static bool IncludeModId [get, set]
 Gets or sets a value indicating whether this T:Pathfinder.Util.Logger should include mod identifier. More...
 
static List< Type > IgnoreEventTypes [get, set]
 

Member Enumeration Documentation

◆ LogLevel

Enumerator
VERBOSE 
DEBUG 
INFO 
WARN 
ERROR 
FATAL 
All 
None 
Default 

Member Function Documentation

◆ AddFlag()

static void Pathfinder.Util.Logger.AddFlag ( LogLevel  levels)
static
Parameters
levelsLog Level(s) to add.

◆ Debug()

static void Pathfinder.Util.Logger.Debug ( params object []  input)
static
Parameters
inputAny stringable inputs. (if larger then one, must be in standard C# String.Format format)

◆ Error()

static void Pathfinder.Util.Logger.Error ( params object []  input)
static
Parameters
inputAny stringable inputs. (if larger then one, must be in standard C# String.Format format)

◆ Fatal()

static void Pathfinder.Util.Logger.Fatal ( params object []  input)
static
Parameters
inputAny stringable inputs. (if larger then one, must be in standard C# String.Format format)

◆ HasFlag()

static bool Pathfinder.Util.Logger.HasFlag ( LogLevel  level)
static
Returns
true, has flag, false otherwise.
Parameters
levelLog Level(s) to test for.

◆ Info()

static void Pathfinder.Util.Logger.Info ( params object []  input)
static
Parameters
inputAny stringable inputs. (if larger then one, must be in standard C# String.Format format)

◆ Log()

static void Pathfinder.Util.Logger.Log ( LogLevel  level,
params object []  input 
)
static
Parameters
levelLog Level to log for.
inputAny stringable inputs. (if larger then one, must be in standard C# String.Format format)

◆ RemoveFlag()

static void Pathfinder.Util.Logger.RemoveFlag ( LogLevel  levels)
static
Parameters
levelsLog Level(s) to remove.

◆ SetFlags()

static void Pathfinder.Util.Logger.SetFlags ( LogLevel  levels)
static
Parameters
levelsLog Levels to set this T:Pathfinder.Util.Logger's showFlags to.

◆ Verbose()

static void Pathfinder.Util.Logger.Verbose ( params object []  input)
static
Parameters
inputAny stringable inputs. (if larger then one, must be in standard C# String.Format format)

◆ Warn()

static void Pathfinder.Util.Logger.Warn ( params object []  input)
static
Parameters
inputAny stringable inputs. (if larger then one, must be in standard C# String.Format format)

Member Data Documentation

◆ DEFAULT_IGNORE_EVENTS

readonly List<Type> Pathfinder.Util.Logger.DEFAULT_IGNORE_EVENTS = new List<Type>(new Type[] { typeof(Event.GameUpdateEvent) })
static

◆ LogHistory

IList<Tuple<LogLevel, string> > Pathfinder.Util.Logger.LogHistory => logHistory.AsReadOnly()
static

The log history for the past 100 log calls.

Property Documentation

◆ IgnoreEventTypes

List<Type> Pathfinder.Util.Logger.IgnoreEventTypes
staticgetset

◆ IncludeModId

bool Pathfinder.Util.Logger.IncludeModId
staticgetset

true if mod identifier should be included; otherwise, false.


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