原来是没有在AssemblyInfo.vb加入<Assembly: log4net.Config.XmlConfigurator()> 代码造成的

 

log4net conversionPattern 说明

 

%m(message):输出的日志消息,如ILog.Debug(…)输出的一条消息
%n(new line):換行
%d(datetime):输出当前语句运行的时刻 
%r(run time):输出程序从运行到执行到当前语句时消耗的毫秒数 
%t(thread id):当前语句所在的线程ID
%p(priority): 日志的当前优先级别,即DEBUG、INFO、WARN…等
%c(class):当前日志对象的名称
%L:输出语句所在的行号
%F:输出语句所在的文件名
%-数字:表示该项的最小长度,如果不够,则用空格填充

相关文章:

  • 2022-12-23
  • 2021-09-25
  • 2021-06-21
  • 2021-12-28
  • 2021-06-11
  • 2021-12-09
  • 2021-08-28
猜你喜欢
  • 2021-08-21
  • 2021-08-16
  • 2021-07-20
  • 2021-11-24
  • 2021-11-19
相关资源
相似解决方案