adi_py.logger

This module contains the ADILogger class which provides a python-like logging API facade around the dsproc logging methods.

Classes

ADILogger

This class provides python-like logging API facade around the dsproc

LogLevel

Generic enumeration.

class adi_py.logger.ADILogger

This class provides python-like logging API facade around the dsproc logging methods.

Class Methods

debug

error

exception

Use this method to log the stack trace of any raised exception to the process’s

info

warning

Method Descriptions

static debug(message, debug_level=1)
static error(message)
static exception(message)

Use this method to log the stack trace of any raised exception to the process’s ADI log file.

Parameters

message (-) – str An optional additional message to log, in addition to the stack trace.

static info(message)
static warning(message)
class adi_py.logger.LogLevel

Bases: enum.Enum

Generic enumeration.

Derive from this class to define new enumerations.

DEBUG = debug
ERROR = error
INFO = info
WARNING = warning