tModLoader v2024.04
A mod to make and play Terraria mods
Logging Class Reference


struct  QuietExceptionHandle

Public Types

enum  LogFile { Client , Server , TerrariaSteamClient }

Static Public Member Functions

static void IgnoreExceptionContents (string source)
static void IgnoreExceptionSource (string source)
static void PrettifyStackTraceSources (StackFrame[] frames)

Static Public Attributes

static readonly string LogArchiveDir = Path.Combine(LogDir, "Old")
static readonly string LogDir = "tModLoader-Logs"


static string LogPath [get]
static ILog PublicLogger = LogManager.GetLogger("PublicLogger") [get]
 Available for logging when Mod.Logging is not available, such as field initialization