Logging enumerated types

group group_logging_enums

Enums

enum CY_LOG_LEVEL_T

CY_LOG_LEVEL_T: Logging levels.

NOTE: Default value for all facilities is passed in to init call

Values:

enumerator CY_LOG_OFF

Do not print log messages.

enumerator CY_LOG_ERR

Print log message if run-time level is <= CY_LOG_ERR.

enumerator CY_LOG_WARNING

Print log message if run-time level is <= CY_LOG_WARNING.

enumerator CY_LOG_NOTICE

Print log message if run-time level is <= CY_LOG_NOTICE.

enumerator CY_LOG_INFO

Print log message if run-time level is <= CY_LOG_INFO.

enumerator CY_LOG_DEBUG

Print log message if run-time level is <= CY_LOG_DEBUG.

enumerator CY_LOG_DEBUG1

Print log message if run-time level is <= CY_LOG_DEBUG1.

enumerator CY_LOG_DEBUG2

Print log message if run-time level is <= CY_LOG_DEBUG2.

enumerator CY_LOG_DEBUG3

Print log message if run-time level is <= CY_LOG_DEBUG3.

enumerator CY_LOG_DEBUG4

Print log message if run-time level is <= CY_LOG_DEBUG4.

enumerator CY_LOG_PRINTF
enumerator CY_LOG_MAX
enum CY_LOG_FACILITY_T

CY_LOG_FACILITY_T: Log Facility type Log facilities allow for separate subsystems to have different run-time log levels for output.

This allows for someone working in the Driver subsystem to turn on DEBUG level without turning DEBUG level for middleware - makes for less unwanted output during debugging / testing.

Values:

enumerator CYLF_DEF

General log message not associated with any specific Facility.

enumerator CYLF_TEST

Test Facility.

enumerator CYLF_DRIVER

Driver Facility.

enumerator CYLF_LP

Low Power Facility.

enumerator CYLF_MIDDLEWARE

Middleware Facility.

enumerator CYLF_AUDIO

Audio Facility.

enumerator CYLF_MAX

Must be last, not an actual index.