|
TModLoader v1.4.4.9
TModLoader source code documentation
|
Collaboration diagram for Terraria.ModLoader.Logging:Classes | |
| struct | QuietExceptionHandle |
Public Types | |
| enum | LogFile { Client , Server , TerrariaSteamClient } |
Static Public Member Functions | |
| static void | IgnoreExceptionSource (string source) |
| static void | IgnoreExceptionContents (string source) |
| static void | PrettifyStackTraceSources (StackFrame[] frames) |
Static Public Attributes | |
| static readonly string | LogDir = "tModLoader-Logs" |
| static readonly string | LogArchiveDir = Path.Combine(LogDir, "Old") |
Static Package Functions | |
| static void | Init (LogFile logFile) |
| static void | LogStartup (bool dedServ) |
| static void | LogStatusChange (string oldStatusText, string newStatusText) |
| static void | ServerConsoleLine (string msg) |
| static void | ServerConsoleLine (string msg, Level level, Exception ex=null, ILog log=null) |
| static void | ResetPastExceptions () |
Static Package Attributes | |
| static readonly FieldInfo | f_fileName = typeof(StackFrame).GetField("_fileName", BindingFlags.Instance | BindingFlags.NonPublic) ?? typeof(StackFrame).GetField("strFileName", BindingFlags.Instance | BindingFlags.NonPublic) |
Properties | |
| static string | LogPath [get, private set] |
| static ILog | PublicLogger = LogManager.GetLogger("PublicLogger") [get] |
| Available for logging when Mod.Logging is not available, such as field initialization. | |
| static ILog | Terraria = LogManager.GetLogger("Terraria") [get] |
| static ILog | tML = LogManager.GetLogger("tML") [get] |
| static ILog | FNA = LogManager.GetLogger("FNA") [get] |
Static Private Member Functions | |
| static void | ConfigureAppenders (LogFile logFile) |
| static void | InitLogPaths (LogFile logFile) |
| static string | GetFreeLogFileName (List< string > baseLogNames, bool roll) |
| static void | RenameToOld (List< string > existingLogs) |
| static bool | CanOpen (string fileName) |
| static void | AddChatMessage (string msg) |
| static void | AddChatMessage (string msg, Color color) |
| static void | DumpEnvVars () |
| static void | LogFirstChanceExceptions () |
| static void | FirstChanceExceptionHandler (object sender, FirstChanceExceptionEventArgs args) |
| static bool | MatchContents (ReadOnlySpan< char > traceString, ReadOnlySpan< char > contentPattern) |
| static void | TryFreeingMemory () |
Static Private Attributes | |
| static readonly Encoding | encoding = new UTF8Encoding(encoderShouldEmitUTF8Identifier: false) |
| static readonly List< string > | initWarnings = new List<string>() |
| static readonly Regex | statusRegex = new Regex("(.+?)[: \\d]*%$") |
| static int | quietExceptionCount |
| static readonly HashSet< string > | pastExceptions = new HashSet<string>() |
| static readonly HashSet< string > | ignoreTypes = new HashSet<string> { "ReLogic.Peripherals.RGB.DeviceInitializationException", "System.Threading.Tasks.TaskCanceledException" } |
| static readonly HashSet< string > | ignoreSources = new HashSet<string> { "MP3Sharp" } |
| static readonly List< string > | ignoreContents |
| static readonly List< string > | ignoreMessages = new List<string> { "A blocking operation was interrupted by a call to WSACancelBlockingCall", "The request was aborted: The request was canceled.", "Object name: 'System.Net.Sockets.Socket'.", "Object name: 'System.Net.Sockets.NetworkStream'", "This operation cannot be performed on a completed asynchronous result object.", "Object name: 'SslStream'.", "Unable to load DLL 'Microsoft.DiaSymReader.Native.x86.dll'" } |
| static readonly List< string > | ignoreThrowingMethods = new List<string> { "System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException", "Terraria.Lighting.doColors_Mode", "System.Threading.CancellationToken.Throw" } |
| static Exception | previousException |
| const BindingFlags | InstanceNonPublic = BindingFlags.Instance | BindingFlags.NonPublic |
| static readonly Assembly | terrariaAssembly = Assembly.GetExecutingAssembly() |
Definition at line 25 of file Logging.cs.