private static void AddCsvTargetWithName(LoggingConfiguration config, CsvLayout csvLayout, string name) | Adds an async CSV file target under Logs in the persistent data folder, archiving at 10 MB and keeping 20 archives. |
private static void AddCustomTarget(LoggingConfiguration config, string fileName, params string[] fields) | Adds a CSV target with time, level, logger and the given event property columns. |
private static void AddCustomTargetsAndRenderers() | Registers the game's NLog targets (Unity console, server console, console commands, main menu) and layout renderers such as logpath and entity-id. |
private static void AddErrorTarget(LoggingConfiguration config) | Adds the ErrorLogFile CSV target with message, stack trace and exception columns. |
private static void AddSimpleTarget(LoggingConfiguration config, string fileName) | Adds a CSV target with time, level, logger and message columns. |
private static void AddSuperSimpleTarget(LoggingConfiguration config, string fileName) | Adds a CSV target with only time and message columns. |
private static string GetLogFolderPath() | Base log folder: the data folder on a server, the client folder otherwise, or the folder of -logFile if given. |
private static string GetLogSettingsPath() | Returns the /logging_config_path value, or an empty string. The cached empty string means the GameConfig fallback is never reached. |
private static void LoadConfiguration() | Loads the NLog config and reconfigures existing loggers, logging to Unity if it fails. |
private static void LogManagerConfigurationReloaded(object sender, LoggingConfigurationReloadedEventArgs e) | Logs a line when NLog reloads its configuration. |
private static void SetFullLogFolderPath() | Sets LogFolderPath from the logFolderPath variable in the loaded NLog config. |
private static void SetupForAndroid() | Builds an NLog config in code for Android with Unity console and CSV file targets. Not called in this file. |
private static void SetupForStandalone() | Loads NLog config from the settings path or StreamingAssets/NLog.config, and hooks Unity's threaded log messages. |
private static void SetupHostname() | Sets the server_name and hostname NLog context values from the HOSTNAME variable, or agones-server. |
private static void ShutdownNLog() | Flushes and shuts down NLog. Runs last on application quit. |
private static void UnhandledUnityLog(string condition, string stackTrace, LogType type) | Forwards Unity log messages to NLog: exceptions to the UnhandledExceptions logger, everything else as warnings to Unhandled. |