mirror of
https://github.com/dongdongunique/EvoSynth.git
synced 2026-07-13 15:47:21 +02:00
first commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
def setup_logging(log_file='toolbox.log', level='DEBUG'):
|
||||
import logging
|
||||
|
||||
logging.basicConfig(
|
||||
filename=log_file,
|
||||
level=getattr(logging, level),
|
||||
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s'
|
||||
)
|
||||
|
||||
def get_logger(name):
|
||||
import logging
|
||||
return logging.getLogger(name)
|
||||
Reference in New Issue
Block a user