/*************************************************************************
* Copyright © 2018 Mogoson. All rights reserved.
*------------------------------------------------------------------------
* File : LogUtilitySettings.cs
* Description : Settings of log utility.
*------------------------------------------------------------------------
* Author : Mogoson
* Version : 0.1.0
* Date : 9/19/2018
* Description : Initial development version.
*************************************************************************/
using MGS.Common.Logger;
using UnityEngine;
namespace MGS.Logger
{
///
/// Settings of log utility.
///
static class LogUtilitySettings
{
#region Field and Property
#if !UNITY_EDITOR
///
/// Path of log file.
///
static readonly string LogPath = Application.persistentDataPath + "/Log/";
#endif
#endregion
#region Public Method
///
/// Initialize log utility.
///
[RuntimeInitializeOnLoadMethod]
static void Initialize()
{
#if UNITY_EDITOR
LogUtility.Logger = UnityDebugger.Instance;
#else
FileLogger.Instance.LogPath = LogPath;
LogUtility.Logger = FileLogger.Instance;
#endif
}
#endregion
}
}