ceylon-sdk icon indicating copy to clipboard operation
ceylon-sdk copied to clipboard

Ceylon logging should support loggers with class name

Open dlkw opened this issue 8 years ago • 1 comments

The ceylon.logging::logger function accepts an argument with type

shared alias Category => Module|Package;

I suggest adding ceylon.language.meta.declaration::ClassDeclaration to the accepted argument types, so a logger can have a class-specific name (as is usual in Java) when created as

Logger log = logger(`class`);

inside a class or member class. Not having class-specific names for loggers makes reading the log more difficult: only the module or even package name is rather coarse to get an idea where the log entry was produced.

dlkw avatar Oct 25 '17 16:10 dlkw

You're welcome to propose a patch.

gavinking avatar Apr 08 '18 00:04 gavinking