ceylon-sdk
ceylon-sdk copied to clipboard
Ceylon logging should support loggers with class name
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.
You're welcome to propose a patch.