Browse Source

Logger:默认启用日志文件,保留 30 天。

master
王厅 2 weeks ago
parent
commit
f4e243bf03
  1. 4
      Apewer/Logger.cs

4
Apewer/Logger.cs

@ -13,9 +13,9 @@ namespace Apewer
{ {
private bool _useconsole = true; private bool _useconsole = true;
private bool _usefile = false; private bool _usefile = true;
private bool _uselock = false; private bool _uselock = false;
private int _reserved = -1; private int _reserved = 30;
private LogCollector _collector = null; private LogCollector _collector = null;
private string _lastdate = null; private string _lastdate = null;
private Action<LogItem>[] _actions = new Action<LogItem>[0]; private Action<LogItem>[] _actions = new Action<LogItem>[0];

Loading…
Cancel
Save