Rejig LogStringHandler (#30706)
* Rejig LogStringHandler * Fix session logs * Fix properly * comments * IAsType support * Fix mind logs * Fix mind logging AGAIN --------- Co-authored-by: PJB3005 <pieterjan.briers+git@gmail.com>
This commit is contained in:
@@ -1,10 +1,19 @@
|
||||
using Content.Shared.Database;
|
||||
using System.Runtime.CompilerServices;
|
||||
using Content.Shared.Database;
|
||||
|
||||
namespace Content.Shared.Administration.Logs;
|
||||
|
||||
public interface ISharedAdminLogManager
|
||||
{
|
||||
void Add(LogType type, LogImpact impact, ref LogStringHandler handler);
|
||||
public bool Enabled { get; }
|
||||
|
||||
void Add(LogType type, ref LogStringHandler handler);
|
||||
// JsonNamingPolicy is not whitelisted by the sandbox.
|
||||
public string ConvertName(string name);
|
||||
|
||||
// Required for the log string interpolation handler to access ToPrettyString()
|
||||
public IEntityManager EntityManager { get; }
|
||||
|
||||
void Add(LogType type, LogImpact impact, [InterpolatedStringHandlerArgument("")] ref LogStringHandler handler);
|
||||
|
||||
void Add(LogType type, [InterpolatedStringHandlerArgument("")] ref LogStringHandler handler);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user