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

the problem when process exit #13

Open
GoogleCodeExporter opened this issue Mar 31, 2015 · 0 comments
Open

the problem when process exit #13

GoogleCodeExporter opened this issue Mar 31, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. general code:
import log "code.google.com/p/log4go"
log.Error(err)
os.Exit(-1)

2.
3.

What is the expected output? What do you see instead?
os.Exit(-1) make the process exit, but the 'err' don't be writed into log file. 
the 'err' may be buffered by the chan of 'log4go', os.Exit make the log4go 
writer(goroutine) exit too.  

What version of the product are you using? On what operating system?
lastest, Linux amd64

Please provide any additional information below.

Original issue reported on code.google.com by Marck...@gmail.com on 10 Oct 2012 at 3:17

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

No branches or pull requests

1 participant