is_log_enable

Applicability

Product

Supported

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

x

Atlas inference product

x

Atlas training product

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