StdoutJsonBackend
JSON output on stdout
- class DIRAC.Resources.LogBackends.StdoutJsonBackend.StdoutJsonBackend(backendParams=None, backendFilters=None)
Bases:
AbstractBackend
This just spits out the log on stdout in a json format.
- __init__(backendParams=None, backendFilters=None)
Initialization of the backend. _handler and _formatter can be custom objects. If it is the case, you can find them in FrameworkSystem/private/standardLogging/Formatter or Handler.
- Parameters:
handlerType – handler object from ‘logging’. Ex: StreamHandler(), FileHandler()…
formatterType – the name of a formatter object from logging. Ex: BaseFormatter
backendParams (dict) – parameters to set up the backend
backendFilters (list) – list of different instances of ‘logging.Filter’.
level (str) – level of the handler
- getHandler()
- Returns:
the handler