Python Forum
no debug messages going into log file
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
no debug messages going into log file
#1
hi all,

the below code works

logger = logging.getLogger("Rotating Log")
logger.setLevel(logging.DEBUG)
handler = TimedRotatingFileHandler(filename='password.log', when='S', interval=30, backupCount=5, delay=True)
formatter = logging.Formatter('%(asctime)s:%(levelname)s:%(message)s', datefmt='%Y/%m/%d %H:%M:%S')
handler.setFormatter(formatter)
logger.addHandler(handler)
but none of the debug messages are going in the log file

thanks,
rob
Larz60+ write Jul-09-2024, 11:16 PM:
Please don't start a new thread on same subject.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  pycharm debug help mg24 1 1,817 Nov-18-2022, 05:38 AM
Last Post: deanhystad
  Python debug suddenly got bad ben1122 3 1,937 Sep-03-2022, 06:20 AM
Last Post: ben1122
Bug Help Debug please jamesaarr 12 6,220 Jul-28-2021, 11:20 PM
Last Post: Pedroski55
  Error in Int object is not subscript-able. How to debug this ? yanDvator 1 2,871 Aug-03-2020, 02:28 PM
Last Post: Larz60+
  how to write messages from command window to log file SriRajesh 1 2,633 Dec-25-2019, 03:57 PM
Last Post: ibreeden
  logging messages ahead of print messages vindo 6 4,699 Jun-18-2019, 02:45 PM
Last Post: vindo
  When I read csv file i am getting b'Skipping line messages GuJu 4 12,161 Mar-07-2019, 11:47 AM
Last Post: GuJu
  is there a debug mode available while creating python egg BhushanPathak 1 3,145 Dec-19-2018, 04:15 PM
Last Post: Larz60+
  Help debug my fibonacci implementation dineshpabbi10 6 5,377 May-16-2018, 12:12 PM
Last Post: dineshpabbi10
  Not sure how to debug this? rsmldmv 3 6,439 Nov-09-2017, 02:51 AM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020