mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-01-15 01:39:39 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
53 lines
844 B
C#
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; }
|
|
}
|
|
}
|