[GenerateTypedNameReferences]
public sealed partial class AccessLevelControl : GridContainer
{
+ [Dependency] private readonly ILogManager _logManager = default!;
+
+ private ISawmill _sawmill = default!;
+
public readonly Dictionary<ProtoId<AccessLevelPrototype>, Button> ButtonsList = new();
public AccessLevelControl()
{
RobustXamlLoader.Load(this);
+
+ _sawmill = _logManager.GetSawmill("accesslevelcontrol");
}
public void Populate(List<ProtoId<AccessLevelPrototype>> accessLevels, IPrototypeManager prototypeManager)
{
if (!prototypeManager.TryIndex(access, out var accessLevel))
{
- Logger.Error($"Unable to find accesslevel for {access}");
+ _sawmill.Error($"Unable to find accesslevel for {access}");
continue;
}