Loading...
Searching...
No Matches
Classes |
Public Types |
Static Public Member Functions |
Static Public Attributes |
List of all members
realvirtual.ThreadSafeLogger Class Reference
Thread-safe logging system for background threads to safely log to Unity main thread. More...
Classes | |
| struct | LogEntry |
| Log entry structure containing all log information. More... | |
Public Types | |
| enum | LogLevel { Info , Warning , Error } |
| Log severity levels. More... | |
Static Public Member Functions | |
| static void | LogInfo (string message, string source=null) |
| Adds info log entry from background thread. | |
| static void | LogWarning (string message, string source=null) |
| Adds warning log entry from background thread. | |
| static void | LogError (string message, string source=null) |
| Adds error log entry from background thread. | |
| static bool | IsDebugEnabled () |
| Checks if debug logging is enabled (for performance optimization) | |
| static void | ProcessLogQueue () |
| Processes all queued log entries on Unity main thread. | |
| static int int int dropped | GetStatistics () |
| static void | ClearQueue () |
| Clears all queued log entries. | |
| static void | LogInfoIf (bool condition, string message, string source=null) |
| Logs info message only if condition is true. | |
| static void | LogWarningIf (bool condition, string message, string source=null) |
| Logs warning message only if condition is true. | |
| static void | LogErrorIf (bool condition, string message, string source=null) |
| Logs error message only if condition is true. | |
| static void | LogCycle (LogLevel level, int cycle, string message, string source=null) |
| Formats log message with cycle information for interfaces. | |
Static Public Attributes | |
| static int | queueSize |
| Gets current queue statistics. | |
| static int int | totalProcessed |
Detailed Description
Thread-safe logging system for background threads to safely log to Unity main thread.
Member Enumeration Documentation
◆ LogLevel
Member Function Documentation
◆ ClearQueue()
|
static |
Clears all queued log entries.
◆ IsDebugEnabled()
|
static |
Checks if debug logging is enabled (for performance optimization)
◆ LogCycle()
|
static |
Formats log message with cycle information for interfaces.
◆ LogError()
|
static |
Adds error log entry from background thread.
◆ LogErrorIf()
|
static |
Logs error message only if condition is true.
◆ LogInfo()
|
static |
Adds info log entry from background thread.
◆ LogInfoIf()
|
static |
Logs info message only if condition is true.
◆ LogWarning()
|
static |
Adds warning log entry from background thread.
◆ LogWarningIf()
|
static |
Logs warning message only if condition is true.
◆ ProcessLogQueue()
|
static |
Processes all queued log entries on Unity main thread.
Member Data Documentation
◆ queueSize
|
static |
Gets current queue statistics.