From ef8f35e75d40aed0354e937b870536c6d6603041 Mon Sep 17 00:00:00 2001 From: Mike Karlesky Date: Thu, 2 May 2024 15:01:15 -0400 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Added=20more=20decorators?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/projectinator.rb | 2 +- lib/ceedling/constants.rb | 6 ++++-- lib/ceedling/rakefile.rb | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/bin/projectinator.rb b/bin/projectinator.rb index eb939e65..f62e9364 100644 --- a/bin/projectinator.rb +++ b/bin/projectinator.rb @@ -208,7 +208,7 @@ def load_filepath(filepath, method, silent) # Log what the heck we loaded if !silent msg = "Loaded #{'(empty) ' if config.empty?}project configuration #{method} using #{filepath}" - @loginator.log( msg, Verbosity::NORMAL, LogLabels::TITLE ) + @loginator.log( msg, Verbosity::NORMAL, LogLabels::CONSTRUCT ) end return config diff --git a/lib/ceedling/constants.rb b/lib/ceedling/constants.rb index 29a755ab..e364e251 100644 --- a/lib/ceedling/constants.rb +++ b/lib/ceedling/constants.rb @@ -32,8 +32,10 @@ class LogLabels WARNING = 3 # 'WARNING:' ERROR = 4 # 'ERROR:' EXCEPTION = 5 # 'EXCEPTION:' - SEGFAULT = 6 # 'SEGFAULT:' - TITLE = 7 # Seedling decorator only + CONSTRUCT = 6 # 🚧 decorator only + STOPWATCH = 7 # ⏱️ decorator only + SEGFAULT = 8 # ☠️ decorator only + TITLE = 9 # 🌱 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 diff --git a/lib/ceedling/rakefile.rb b/lib/ceedling/rakefile.rb index d2b36b2d..d289cb73 100644 --- a/lib/ceedling/rakefile.rb +++ b/lib/ceedling/rakefile.rb @@ -30,7 +30,7 @@ def log_runtime(run, start_time_s, end_time_s, enabled) return if duration.empty? @ceedling[:loginator].out( "\n" ) - @ceedling[:loginator].log( "Ceedling #{run} completed in #{duration}", Verbosity::NORMAL, LogLabels::TITLE ) + @ceedling[:loginator].log( "Ceedling #{run} completed in #{duration}", Verbosity::NORMAL, LogLabels::STOPWATCH ) end start_time = nil # Outside scope of exception handling