using UnityEngine; using Ubisoft.Hotel.Package; namespace Ubisoft.Hotel.Logger { public class PlayerLoggerProperty : PlayerPackageProperty { public const string ATT_CHANNELS_PRESET = "m_channelsPreset"; /// /// Minimum log level to use. Logs lower than this level will be stripped out which means that not only that there will be /// no impact in performance at all /// [SerializeField] private HtLogger.ELogLevel m_minLogLevel; /// /// Whether or not logs must be sent to Unity logging system /// [SerializeField] private bool m_isUnityLoggerEnabled; /// /// Max size in kbytes for the file log. Pass in 0 if you don't want to store logs to a file /// [SerializeField] private int m_maxSizeFile; /// /// Channels settings that determine which channels need to be enabled. /// [SerializeField] private ChannelsPreset m_channelsPreset; public HtLogger.ELogLevel MinLogLevel { get { return m_minLogLevel; } set { m_minLogLevel = value; } } public bool IsUnityLoggerEnabled { get { return m_isUnityLoggerEnabled; } set { m_isUnityLoggerEnabled = value; } } public int MaxSizeFile { get { return m_maxSizeFile; } set { m_maxSizeFile = value; } } public ChannelsPreset ChannelsPreset { get { return m_channelsPreset; } set { m_channelsPreset = value; } } } }