TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ Init()

static void Terraria.ModLoader.Logging.Init ( LogFile logFile)
inlinestaticpackage

Definition at line 100 of file Logging.cs.

101 {
102 if (Program.LaunchParameters.ContainsKey("-build"))
103 {
104 return;
105 }
106 Utils.TryCreatingDirectory(LogDir);
107 try
108 {
111 }
112 catch (Exception e)
113 {
114 ErrorReporting.FatalExit("Failed to init logging", e);
115 }
116 }
static void FatalExit(string message)
This class handles displaying errors that require a OS-provided modal message box....
static void ConfigureAppenders(LogFile logFile)
Definition Logging.cs:159
static void InitLogPaths(LogFile logFile)
Definition Logging.cs:211
static readonly string LogDir
Definition Logging.cs:48

References Terraria.ModLoader.Logging.ConfigureAppenders(), Terraria.ModLoader.Engine.ErrorReporting.FatalExit(), Terraria.ModLoader.Logging.InitLogPaths(), Terraria.Program.LaunchParameters, Terraria.ModLoader.Logging.LogDir, and Terraria.Utils.TryCreatingDirectory().

Referenced by Terraria.ModLoader.Engine.TerrariaSteamClient.Run(), and Terraria.Program.StartupSequenceTml().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: