i am learning python and tried to follow the course about logging but i can't use modules:
here's the module i want to import: helper.py
import logging
def helper():
logging.info('hello from helper')
here is main file: logs.py
import logging
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
datefmt='%m/%d/%Y %H:%M:%S')
import helper
helper.helper()
and here is what termianl says:
Traceback (most recent call last):
File "c:\Users\DoggoBeatz\vsc projects\logs.py", line 10, in <module>
helper.helper()
AttributeError: module 'helper' has no attribute 'helper'