15 lines
332 B
C#
15 lines
332 B
C#
using LLCSharpUtils;
|
|
|
|
namespace BangumiRenamer.Tools;
|
|
|
|
public class Logger
|
|
{
|
|
private static readonly Lazy<Log> _lazy = new (() =>
|
|
{
|
|
var log = new Log(new LogConfig());
|
|
if (!log.Init()) throw new Exception("Failed to initialize log");
|
|
return log;
|
|
});
|
|
|
|
public static Log G => _lazy.Value;
|
|
} |