in reply to Re: RFC: Log::Painless
in thread RFC: Log::Painless
However, I really don't like the automatic importing of so many functions, particularly enter, leave and caught.
Actually, I agreed with you from the beginning. Those three functions can be excluded from import, or selectively imported:
use Log::Painless { shortcuts => [] }; #or use Log::Painless { shortcuts => ['enter','leave'] };
This is in the documentation, but I admit it doesn't jump out. I'd be happy to hear suggestions on how to make the document more clear.
The end result is only really three functions are exported in a mandatory way: info, debug and trace. I will certainly give some thought to controlling the export of these -- my gut says that you must have these three available, but perhaps they could be aliased as the code author sees fit?
I will take your POD suggestions and reorganize a bit before publishing to CPAN.
Thanks for the response!
|
|---|