Move all loggers to be members of the class, not global objects

This commit is contained in:
Pim van Pelt
2021-09-12 16:08:35 +00:00
parent 9265e211e3
commit 7206d92f40
5 changed files with 57 additions and 79 deletions

View File

@ -6,22 +6,15 @@ from __future__ import (
print_function,
)
# --------------------------------------------
import logging
class NullHandler(logging.Handler):
def emit(self, record):
pass
# --------------------------------------------
import time
import logging
import agentx
from agentx.dataset import DataSet
from agentx.network import Network
class AgentError(Exception):
pass
class NullHandler(logging.Handler):
def emit(self, record):
pass
class Agent(object):