Skip to main content
Namespace: OpenTD.Logging
Assembly: OpenTD.dll
Use LoggerFactory to generate new Loggers. LogConfigPath is the path to a configuration file that is read when OpenTD is first started. Control where logs are written using this file.

Inheritance

object ← LoggerFactory

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Fields

Initialized

Field Value

bool

Properties

LogConfigPath

Property Value

string

Methods

GetLogger(string)

Get a new Logger. Hint: create a static logger for your class and name it with the class name.

Parameters

name string

Returns

Logger

See Also

Logger

GetLogger()

Get a new Logger, with a default name.

Returns

Logger

See Also

Logger

LogAndThrowException(string, Logger, Exception, bool)

Parameters

msg string log Logger innerEx Exception justWarning bool

See Also

Logger