Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
taczc64 opened this issue Nov 17, 2016 · 2 comments
Open

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

taczc64 opened this issue Nov 17, 2016 · 2 comments

Comments

@taczc64
Copy link

taczc64 commented Nov 17, 2016

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
Copy link
Author

taczc64 commented Nov 18, 2016

I think maybe the IO is too busy..

@carl-leopard
Copy link

    <filter levels="warn">
        <file path="./logs/business/warn.log"/>
    </filter>

    <filter levels="error,critical">
        <file path="./logs/critical/error.log"/>
    </filter>
</outputs>
<formats>
    <format id="common" format="%Date(01/02/06 15:04:05.000000) [%Level] [%FuncShort/%Line] %Msg%n" />
</formats>

I also met same question, can you solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants