Files
sbox-public/engine/Sandbox.System/Logging/LogEvent.cs
s&box team 71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00

53 lines
844 B
C#

namespace Sandbox
{
public enum LogLevel
{
Trace,
Info,
Warn,
Error
}
public struct LogEvent
{
[Title( "Log Level" )]
[Category( "Meta Data" )]
[ReadOnly]
public LogLevel Level { get; set; }
[Category( "Meta Data" )]
[ReadOnly]
public string Logger { get; set; }
[ReadOnly]
public string Message { get; set; }
[ReadOnly]
[SkipHotload]
public Exception Exception { get; set; }
[ReadOnly]
public string HtmlMessage { get; set; }
[Title( "Stack Trace" )]
[ReadOnly]
[Category( "Stack Trace" )]
public string Stack { get; set; }
[Category( "Meta Data" )]
[ReadOnly]
public DateTime Time { get; set; }
[ReadOnly]
[SkipHotload]
public object[] Arguments { get; set; }
[ReadOnly]
public int Repeats { get; set; }
[ReadOnly]
public bool IsDiagnostic { get; set; }
}
}