Log: persist level when set through menu

This commit is contained in:
Philpax 2021-07-11 00:52:54 +02:00
parent 7ed04e80cd
commit 21ce3aaf71
5 changed files with 21 additions and 9 deletions

View file

@ -5,6 +5,7 @@ using System.IO;
using Dalamud.Game.Text;
using Newtonsoft.Json;
using Serilog;
using Serilog.Events;
namespace Dalamud.Configuration
{
@ -12,7 +13,7 @@ namespace Dalamud.Configuration
/// Class containing Dalamud settings.
/// </summary>
[Serializable]
internal class DalamudConfiguration
public class DalamudConfiguration
{
[JsonIgnore]
private string configPath;
@ -113,6 +114,11 @@ namespace Dalamud.Configuration
/// </summary>
public bool DoButtonsSystemMenu { get; set; } = true;
/// <summary>
/// Gets or sets the default Dalamud debug log level on startup.
/// </summary>
public LogEventLevel LogLevel { get; set; } = LogEventLevel.Information;
/// <summary>
/// Gets or sets a value indicating whether or not the debug log should scroll automatically.
/// </summary>

View file

@ -3,7 +3,7 @@ namespace Dalamud.Configuration
/// <summary>
/// Third party repository for dalamud plugins.
/// </summary>
internal class ThirdRepoSetting
public class ThirdRepoSetting
{
/// <summary>
/// Gets or sets the third party repo url.