using FishNet.Documenting; using System; using System.Runtime.CompilerServices; using UnityEngine; namespace FishNet.Managing.Logging { /// /// Base for logging configurations. /// public abstract class LoggingConfiguration : ScriptableObject { #region Serialized. /// /// True to use logging features. False to disable all logging. /// [Tooltip("True to use logging features. False to disable all logging.")] public bool IsEnabled = true; [Obsolete("Use IsEnabled.")] //Remove V5 public bool LoggingEnabled { get => IsEnabled; set => IsEnabled = value; } #endregion /// /// Initializes script for use. /// /// public virtual void InitializeOnce() { } /// /// True if can log for loggingType. /// /// Type of logging being filtered. /// public abstract bool CanLog(LoggingType loggingType); /// /// Logs a common value if can log. /// public abstract void Log(string value); /// /// Logs a warning value if can log. /// public abstract void LogWarning(string value); /// /// Logs an error value if can log. /// public abstract void LogError(string value); /// /// Clones this logging configuration. /// /// public abstract LoggingConfiguration Clone(); } }