Re: Python 3.6 Logging time is not listed

2018-08-20 Thread dieter
Keep Secret writes: > On Monday, 13 August 2018 19:42:57 UTC+2, Léo El Amri wrote: >> On 13/08/2018 19:23, MRAB wrote: >> > Here you're configuring the logger, setting the name of the logfile and >> > the logging level, but not specifying the format, so it uses the default >> > format: >> > >> >

Re: Python 3.6 Logging time is not listed

2018-08-20 Thread Keep Secret
On Monday, 13 August 2018 19:42:57 UTC+2, Léo El Amri wrote: > On 13/08/2018 19:23, MRAB wrote: > > Here you're configuring the logger, setting the name of the logfile and > > the logging level, but not specifying the format, so it uses the default > > format: > > > >> logging.basicConfig(filenam

Python 3.6 Logging time is not listed

2018-08-13 Thread Léo El Amri via Python-list
On 13/08/2018 19:23, MRAB wrote: > Here you're configuring the logger, setting the name of the logfile and > the logging level, but not specifying the format, so it uses the default > format: > >> logging.basicConfig(filename='example.log',level=logging.DEBUG) > > Here you're configuring the logg

Re: Python 3.6 Logging time is not listed

2018-08-13 Thread MRAB
On 2018-08-13 17:37, Keep Secret wrote: #!/usr/bin/env python3 import logging Here you're configuring the logger, setting the name of the logfile and the logging level, but not specifying the format, so it uses the default format: logging.basicConfig(filename='example.log',level=logging.DE

Re: Python 3.6 Logging time is not listed

2018-08-13 Thread Alexandre Brault
On 2018-08-13 12:37 PM, Keep Secret wrote: > #!/usr/bin/env python3 > import logging > logging.basicConfig(filename='example.log',level=logging.DEBUG) > logging.basicConfig(format='%(asctime)s;%(levelname)s:%(message)s', > level=logging.DEBUG) > logging.debug('Message1) > logging.info('Message2')

Python 3.6 Logging time is not listed

2018-08-13 Thread Keep Secret
#!/usr/bin/env python3 import logging logging.basicConfig(filename='example.log',level=logging.DEBUG) logging.basicConfig(format='%(asctime)s;%(levelname)s:%(message)s', level=logging.DEBUG) logging.debug('Message1) logging.info('Message2') logging.warning('Message3') DEBUG:root:Message1 INFO:roo