Files
RobustToolbox/Robust.Shared.Utility/Log/ILogHandler.cs
PJB3005 b7a3526131 Move RHI to its own project
Move some of Robust.Shared to a new project so it can be depended upon without adding longer dependency chains.
2025-10-07 18:18:48 +02:00

22 lines
702 B
C#

using Serilog.Events;
namespace Robust.Shared.Log
{
/// <summary>
/// Formats and prints a log message to an output source.
/// </summary>
public interface ILogHandler
{
/// <summary>
/// Logs a message to.. somewhere.
/// You choose that somewhere.
/// </summary>
/// <remarks>
/// This method can be called from multiple threads so make sure it's thread safe!
/// </remarks>
/// <param name="sawmillName">The name of the sawmill that this message was raised on.</param>
/// <param name="message">The message to log.</param>
void Log(string sawmillName, LogEvent message);
}
}