From 60b25f21c65acbf08eda8f366b538dc12ac8bae8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krystian=20Guli=C5=84ski?= Date: Tue, 22 Oct 2024 14:40:22 +0200 Subject: [PATCH 1/3] Update LogRoller.jl --- src/LogRoller.jl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/LogRoller.jl b/src/LogRoller.jl index 201102f..bc2f94d 100644 --- a/src/LogRoller.jl +++ b/src/LogRoller.jl @@ -9,13 +9,15 @@ using JSON.Serializations: CommonSerialization, StandardSerialization using JSON.Writer: StructuralContext import JSON: show_json -import Logging: shouldlog, min_enabled_level, catch_exceptions, handle_message +import Logging: Logging, shouldlog, min_enabled_level, catch_exceptions, handle_message import Base: write, close, rawhandle export RollingLogger, RollingFileWriter, postrotate const BUFFSIZE = 1024*16 # try and read 16K pages when possible const DEFAULT_MAX_LOG_ENTRY_SIZE = 256*1024 +const showvalue = VERSION ≥ v"1.11.0-DEV.1786" ? Base.CoreLogging.showvalue : Logging.showvalue + include("limitio.jl") include("log_utils.jl") @@ -223,7 +225,7 @@ function handle_message(logger::RollingLogger, level, message, _module, group, i for (key, val) in kwargs kwarg_timestamp && (key === logger.timestamp_identifier) && continue print(iob, "│ ", key, " = ") - Logging.showvalue(iob, val) + showvalue(iob, val) println(iob) end println(iob, "└ @ ", something(_module, "nothing"), " ", something(filepath, "nothing"), ":", something(line, "nothing")) From f3530b2ef3a53731c30488b6978a3a47e0805ead Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krystian=20Guli=C5=84ski?= Date: Tue, 22 Oct 2024 14:42:46 +0200 Subject: [PATCH 2/3] Update LogRoller.jl --- src/LogRoller.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/LogRoller.jl b/src/LogRoller.jl index bc2f94d..8b9ed09 100644 --- a/src/LogRoller.jl +++ b/src/LogRoller.jl @@ -3,13 +3,12 @@ module LogRoller using Dates using Logging using CodecZlib -using Logging using JSON using JSON.Serializations: CommonSerialization, StandardSerialization using JSON.Writer: StructuralContext import JSON: show_json -import Logging: Logging, shouldlog, min_enabled_level, catch_exceptions, handle_message +import Logging: shouldlog, min_enabled_level, catch_exceptions, handle_message import Base: write, close, rawhandle export RollingLogger, RollingFileWriter, postrotate From 76ce4090d4f95ef2669b19a03c8168cdb45cd9f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krystian=20Guli=C5=84ski?= Date: Tue, 22 Oct 2024 14:52:31 +0200 Subject: [PATCH 3/3] Update Project.toml --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 9356391..2ceefc3 100644 --- a/Project.toml +++ b/Project.toml @@ -3,7 +3,7 @@ uuid = "c41e01d8-14e5-11ea-185b-e7eabed7be4b" keywords = ["log", "rotate", "roller", "logrotate"] license = "MIT" authors = ["Tanmay Mohapatra "] -version = "0.5.0" +version = "0.5.1" [compat] julia = "1.8"