X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FObject%2FRemote.pm;h=55b6b59098281b718f33602abfa9e72d52f9bb17;hb=6af673c19d7b5d0f9e428b21edfc0e5ae4f77576;hp=9dbb70e2d9c809a72a0ecde1e6e1874819eac9a7;hpb=5d59cb9859e004df5cde5d83aa7230e621a28b95;p=scpubgit%2FObject-Remote.git diff --git a/lib/Object/Remote.pm b/lib/Object/Remote.pm index 9dbb70e..55b6b59 100644 --- a/lib/Object/Remote.pm +++ b/lib/Object/Remote.pm @@ -5,11 +5,7 @@ use Object::Remote::Handle; use Object::Remote::Logging qw( :log ); use Module::Runtime qw(use_module); -our $VERSION = '0.002003'; # 0.2.3 - -BEGIN { - Object::Remote::Logging->init_logging; -} +our $VERSION = '0.003001'; # 0.3.1 sub new::on { my ($class, $on, @args) = @_; @@ -130,6 +126,41 @@ to block until an asynchronous call completes or fails. my $hostname = Sys::Hostname->can::on('myserver', 'hostname'); +=head1 ENVIRONMENT + +=over 4 + +=item OBJECT_REMOTE_PERL_BIN + +When starting a new Perl interpreter the contents of this environment +variable will be used as the path to the executable. If the variable +is not set the path is 'perl' + +=item OBJECT_REMOTE_LOG_LEVEL + +Setting this environment variable will enable logging and send all log messages +at the specfied level or higher to STDERR. Valid level names are: trace debug +verbose info warn error fatal + +=item OBJECT_REMOTE_LOG_FORMAT + +The format of the logging output is configurable. By setting this environment variable +the format can be controlled via printf style position variables. See +L. + +=item OBJECT_REMOTE_LOG_FORWARDING + +Forward log events from remote connections to the local Perl interpreter. Set to 0 to disable +this feature which is enabled by default. See L. + +=item OBJECT_REMOTE_LOG_SELECTIONS + +Space seperated list of class names to display logs for if logging output is enabled. Default +value is "Object::Remote::Logging" which selects all logs generated by Object::Remote. +See L. + +=back + =head1 SUPPORT IRC: #web-simple on irc.perl.org @@ -142,6 +173,8 @@ mst - Matt S. Trout (cpan:MSTROUT) phaylon - Robert Sedlacek (cpan:PHAYLON) +triddle - Tyler Riddle (cpan:TRIDDLE) + =head1 SPONSORS Parts of this code were paid for by