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

I can not find the file "myapp.log" at current directory #3051

Closed
A-Pai opened this issue Mar 11, 2016 · 1 comment
Closed

I can not find the file "myapp.log" at current directory #3051

A-Pai opened this issue Mar 11, 2016 · 1 comment

Comments

@A-Pai
Copy link

A-Pai commented Mar 11, 2016

import logging
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s %(filename)s[line:%(lineno)d] %(levelname)s %(message)s',
datefmt='%a, %d %b %Y %H:%M:%S',
filename='myapp.log',
filemode='w')
logging.debug('This is debug message')
logging.info('This is info message')
logging.warning('This is warning message')

@Nodd
Copy link
Contributor

Nodd commented Mar 11, 2016

Hello, thanks for the report. Sadly you're not the only one with this problem, and it has already been reported in #2572.
I'll close this one as a duplicate.

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

2 participants