Skip to content

Commit caf6bd0

Browse files
author
karei
committed
feat: Include module name in PlainLogger output
Add module name to the log output format in PlainLogger, displaying it before the filename for better context in log messages. modified: src/PlainLogger.jl
1 parent 3925679 commit caf6bd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PlainLogger.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function Logging.handle_message(l::PlainLogger, level::LogLevel, message, _modul
4545

4646
if file !== nothing
4747
println(iob)
48-
printstyled(iob, "@ ", Base.basename(String(file)); color)
48+
printstyled(iob, "@ $_module ", Base.basename(String(file)); color)
4949
if line !== nothing
5050
printstyled(iob, ":", line; color)
5151
end

0 commit comments

Comments
 (0)