Skip to main content

CommandLineArgsLogger

A class in Root.Township, Alta.Logging.

Logs the command line arguments at startup, to both the Unity log and NLog.

Constructors​

MemberWhat it is
CommandLineArgsLogger()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

1 private and internal field
MemberWhat it is
private static readonly Logger loggerLogger for this class.

Methods​

3 private and internal methods
MemberWhat it is
private void Awake()Logs the raw arguments, then the game's parsed arguments.
private void LogAltaCommandLineArgs()Logs CommandLineArguments.AllArguments, though the message still says raw.
private void LogRawCommandLineArgs()Logs the process's raw command line arguments.