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!
In reply to Re^2: RFC: Log::Painless
by radiantmatrix
in thread RFC: Log::Painless
by radiantmatrix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |