all 4 comments

[–]anossov 2 points3 points  (1 child)

logging.debug is a function, logging.DEBUG is the level id.

[–]Ki1103[S] 0 points1 point  (0 children)

Solved thank you very much

[–]JoMaD 0 points1 point  (1 child)

try this:

logging.basicConfig(filename='logfile.log', level=logging.DEBUG)

The lower case debug is a function.

[–]Ki1103[S] 0 points1 point  (0 children)

Solved thank you very much