using Robust.Shared.Configuration;
namespace Content.Shared.CCVar;
public sealed partial class CCVars
{
///
/// Controls if admin logs are enabled. Highly recommended to shut this off for development.
///
public static readonly CVarDef AdminLogsEnabled =
CVarDef.Create("adminlogs.enabled", true, CVar.SERVERONLY);
public static readonly CVarDef AdminLogsQueueSendDelay =
CVarDef.Create("adminlogs.queue_send_delay_seconds", 5f, CVar.SERVERONLY);
///
/// When to skip the waiting time to save in-round admin logs, if no admin logs are currently being saved
///
public static readonly CVarDef AdminLogsQueueMax =
CVarDef.Create("adminlogs.queue_max", 5000, CVar.SERVERONLY);
///
/// When to skip the waiting time to save pre-round admin logs, if no admin logs are currently being saved
///
public static readonly CVarDef AdminLogsPreRoundQueueMax =
CVarDef.Create("adminlogs.pre_round_queue_max", 5000, CVar.SERVERONLY);
///
/// When to start dropping logs
///
public static readonly CVarDef AdminLogsDropThreshold =
CVarDef.Create("adminlogs.drop_threshold", 20000, CVar.SERVERONLY);
///
/// How many logs to send to the client at once
///
public static readonly CVarDef AdminLogsClientBatchSize =
CVarDef.Create("adminlogs.client_batch_size", 1000, CVar.SERVERONLY);
public static readonly CVarDef AdminLogsServerName =
CVarDef.Create("adminlogs.server_name", "unknown", CVar.SERVERONLY);
///
/// Any session below this playtime will send an admin alert whenever they cause a LogImpact.High log.
/// Set to -1 to disable.
///
public static readonly CVarDef AdminLogsHighLogPlaytime =
CVarDef.Create("adminlogs.high_log_playtime", 5, CVar.SERVERONLY);
}