A class in Root.Township, the global namespace.
Passes log calls from the Agones SDK (game server hosting) to NLog.
Constructors
| Member | What it is |
|---|
AgonesLogger() | Creates an AgonesLogger with default values. |
Fields
1 private and internal field
| Member | What it is |
|---|
private static Logger logger | Class logger the messages go to. |
Properties
| Member | What it is |
|---|
string Prefix { get; set; } | Prefix property required by the Agones logger interface. Not used when logging. |
Methods
| Member | What it is |
|---|
void Log(LogLevel level, string message, params object[] args) | Logs a message, with an exception in one overload, at the matching NLog level. |
void Log(LogLevel level, Exception exception, string message, params object[] args) | Logs a message, with an exception in one overload, at the matching NLog level. |
1 private and internal method
| Member | What it is |
|---|
private static void LogToNLog(Exception exception, LogLevel level, string message, object[] args) | Maps the Agones log level to NLog (unknown levels become Info) and logs. |