log4net config SqLite in code

后端 未结 2 1112
無奈伤痛
無奈伤痛 2020-12-18 09:46

Earlier today I asked a question about configuring log4net from code and got an answer very quickly which allowed me to configure it to output to a text file. Since then my

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-18 10:39

    Did you try changing the buffer size from 100 to 1?

    appender.BufferSize = 100;
    

    to

    appender.BufferSize = 1;
    

    Currently your file is waiting for a 100 messages before it outputs any.

提交回复
热议问题