Subject: | Suggestions for method names |
Wow, this is great! I just sat down in order to write exactly this
module, and luckily I checked CPAN beforehand -- thanks so much for
writing this! I'll add it to my Log4perl talk at OSCON on 7/24.
I noticed that you've chosen log() as the method name, which makes
perfect sense to me but I was wondering if we should provide more options.
For example, the LogDispatch guys are using logger(), so if we want
interoperability, it'd be nice if we could add that too as an alias.
Would be cool to use log4perl- or logdispatch- enabled code without
modifications.
Another option which would probably appeal to lazy people (like myself):
$self->log_debug()
and make the prefix "log_" configurable so that you could say
with MooseX::Log::Log4perl (prefix => "");
sub foo {
my $self = shift;
$self->debug("hi!");
}
at which point we could put it under the :easy umbrella:
with MooseX::Log::Log4perl (:easy);
What do you think?
Anyways, just wanted to say thanks for the module, keep up the great work!
-- Mike