cihub / seelog

Seelog is a native Go logging library that provides flexible asynchronous dispatching, filtering, and formatting.
BSD 3-Clause "New" or "Revised" License
1.64k stars 244 forks source link

set rolling logs every hour, but log file doesn't produce in time #133

Open taczc64 opened 8 years ago

taczc64 commented 8 years ago

hi, I set my config xml file below: <seelog> <outputs formatid="main"> <filter levels="info,debug,critical,error"> <rollingfile type="date" filename="logs/proxy.log" datepattern="02.01.2006.15" maxrolls="180" /> </filter> </outputs> <formats> <format id="main" format="%Date/%Time %File:%Line [%LEV] %Msg%n"/> </formats> </seelog>

but it doesnt produce any log file as i think. did I make something wrong? besides, i wrte a test program to test my log setting, this time i set the datepattern to "02.01.2006.15.04", it work as my expected!

taczc64 commented 8 years ago

I think maybe the IO is too busy..

carl-leopard commented 6 years ago

I also met same question, can you solve it?