is_log_enable

Applicable Products

Product

Supported

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas 200I/500 A2 inference products

x

Atlas inference products

x

Atlas training products

x

Function Description

Checks whether logs of the corresponding level and type are enabled.

Prototype

1
is_log_enable(self, log_type: fw.FlowFuncLogType, log_level: fw.FlowFuncLogLevel) -> bool

Parameters

Parameter

Input/Output

Description

log_type

Input

Log type. The values are as follows:

  • DEBUG_LOG
  • RUN_LOG

log_level

Input

Log level. The values are as follows:

  • DEBUG
  • INFO
  • WARN
  • ERROR

Returns

  • True: enabled
  • False: disabled

Exception Handling

None

Constraints

None