Skip to content

Commit

Permalink
💡 More better LogLabels and Verbosity comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mkarlesky committed May 1, 2024
1 parent 64ce6ff commit 838a27c
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions lib/ceedling/constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# SPDX-License-Identifier: MIT
# =========================================================================

# Logging verbosity levels
class Verbosity
SILENT = 0 # As silent as possible (though there are some messages that must be spit out)
ERRORS = 1 # Only errors
Expand All @@ -23,18 +24,19 @@ class Verbosity
:debug => Verbosity::DEBUG,
}.freeze()

# Label + decorator options for logging
class LogLabels
NONE = 0 # Override logic and settings with no label and no decoration
AUTO = 1 # Default labeling and decorators
NOTICE = 2 # 'NOTICE:'
WARNING = 3 # 'WARNING:'
ERROR = 4 # 'ERROR:'
EXCEPTION = 5 # 'EXCEPTION:'
SEGFAULT = 6 # 'SEGFAULT:'
TITLE = 7 # Seedling decorator only

# Verbosity levels ERRORS, COMPLAIN, and NORMAL default to certain labels or lack thereof
# The above label constarts are available to override Loginator's default AUTO level as needed
NONE = 0 # Override logic and settings with no label and no decoration
AUTO = 1 # Default labeling and decorators
NOTICE = 2 # 'NOTICE:'
WARNING = 3 # 'WARNING:'
ERROR = 4 # 'ERROR:'
EXCEPTION = 5 # 'EXCEPTION:'
SEGFAULT = 6 # 'SEGFAULT:'
TITLE = 7 # Seedling decorator only

# Verbosity levels ERRORS – DEBUG default to certain labels or lack thereof
# The above label constants are available to override Loginator's default AUTO level as needed
# See Loginator comments
end

Expand Down

0 comments on commit 838a27c

Please sign in to comment.