datacenter / acitoolkit

A basic toolkit for accessing the Cisco APIC
Other
350 stars 266 forks source link

Use a named logger so they can be formatted and filtered #361

Closed mattmess1221 closed 4 years ago

mattmess1221 commented 4 years ago

The way it is now, all log messages go to the "root" logger. This makes it hard to customize and filter messages with a config. Giving the loggers a name allows customization.

i.e. with object config:

loggers:
  acitoolkit:
    level: INFO
  acitoolkit.acitoolkit:
    level: WARN
mattmess1221 commented 4 years ago

Build seems to be failing because some dependency requires python 3.5 now, but build uses 3.4.