Skip to content

Commit

Permalink
change logging function to return config
Browse files Browse the repository at this point in the history
  • Loading branch information
jgstew committed Aug 29, 2024
1 parent e5f27e2 commit d9d88c0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/besapi/plugin_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,14 @@ def setup_plugin_logging(log_file_path="", verbose=0, console=True):
handlers.append(logging.StreamHandler())
print("INFO: also logging to console")

# setup logging:
logging.basicConfig(
encoding="utf-8",
level=log_level,
format="%(asctime)s %(levelname)s:%(message)s",
handlers=handlers,
force=True,
)
# return logging config:
return {
"encoding": "utf-8",
"level": log_level,
"format": "%(asctime)s %(levelname)s:%(message)s",
"handlers": handlers,
"force": True,
}


def get_besapi_connection(args):
Expand Down

0 comments on commit d9d88c0

Please sign in to comment.