diff --git a/crates/nu-utils/standard_library/std.nu b/crates/nu-utils/standard_library/std.nu index 4508d70963..c6f4517574 100644 --- a/crates/nu-utils/standard_library/std.nu +++ b/crates/nu-utils/standard_library/std.nu @@ -376,7 +376,7 @@ export def "log warning" [message: string] { export def "log info" [message: string] { if (current-log-level) > (INFO_LEVEL) { return } - print --stderr $"(ansi white)INF|(now)|($message)(ansi reset)" + print --stderr $"(ansi default)INF|(now)|($message)(ansi reset)" } # Log debug message export def "log debug" [message: string] { diff --git a/crates/nu-utils/standard_library/test_logger.nu b/crates/nu-utils/standard_library/test_logger.nu index 2a880a11ec..222ab3fad9 100644 --- a/crates/nu-utils/standard_library/test_logger.nu +++ b/crates/nu-utils/standard_library/test_logger.nu @@ -37,3 +37,10 @@ export def test_debug [] { assert no message INFO debug assert message DEBUG debug DBG } +export def example [] { + log debug "Debug message" + log info "Info message" + log warning "Warning message" + log error "Error message" + log critical "Critical message" +} \ No newline at end of file