1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:33:30 +08:00

Use local logger

This commit is contained in:
Dean Herbert 2019-05-15 14:12:59 +09:00
parent c01841d7d7
commit 501eaa072e

View File

@ -169,12 +169,17 @@ namespace osu.Desktop.Updater
{
public LogLevel Level { get; set; } = LogLevel.Info;
private Logger logger;
public void Write(string message, LogLevel logLevel)
{
if (logLevel < Level)
return;
Logger.Log(message);
if (logger == null)
logger = Logger.GetLogger("updater");
logger.Add(message);
}
public void Dispose()