Skip to content

Commit

Permalink
Add mqtt logger
Browse files Browse the repository at this point in the history
  • Loading branch information
tsundvoll committed Oct 17, 2022
1 parent 4f6c615 commit d4f1de1
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions src/isar/config/logging.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,18 @@ formatters:
style: "{"
format: "{asctime} - {levelprefix:<8} - {name} - {message}"
handlers:
api:
class: logging.FileHandler
formatter: simple
filename: api.log
main:
class: logging.FileHandler
formatter: simple
filename: main.log
api:
mqtt:
class: logging.FileHandler
formatter: simple
filename: api.log
filename: mqtt.log
state_machine:
class: logging.FileHandler
formatter: simple
Expand All @@ -32,17 +36,20 @@ loggers:
api:
handlers: [api]
propagate: no
urllib3:
handlers: []
uvicorn:
handlers: [api]
propagate: no
mqtt:
handlers: [mqtt]
propagate: False
state_machine:
handlers: [state_machine]
propagate: False
uploader:
handlers: [uploader]
propagate: False
urllib3:
handlers: []
uvicorn:
handlers: [api]
propagate: no
azure:
handlers: []
propagate: no
Expand Down

0 comments on commit d4f1de1

Please sign in to comment.