X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FLog.pm;h=d72ee162f4f7f0b8c6086a69fe0348e8f46e7b52;hb=6e8520be0c895f96e8e28f724ba73ba70ea4fac6;hp=b685b72d62e858efedb4716a62b34d7e91870822;hpb=21da73774347823e2983e1f8dfa73917d0779d2f;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Log.pm b/lib/Catalyst/Log.pm index b685b72..d72ee16 100644 --- a/lib/Catalyst/Log.pm +++ b/lib/Catalyst/Log.pm @@ -162,6 +162,8 @@ __PACKAGE__->meta->make_immutable(inline_constructor => 0); __END__ +=for stopwords psgienv + =head1 NAME Catalyst::Log - Catalyst Log Class @@ -290,6 +292,21 @@ This protected method is what actually sends the log information to STDERR. You may subclass this module and override this method to get finer control over the log output. +=head2 psgienv $env + + $log->psgienv($env); + +NOTE: This is not meant for public consumption. + +Set the PSGI environment for this request. This ensures logs will be sent to +the right place. If the environment has a C, it will be used. If +not, we will send logs to C if that exists. As a last fallback, we +will send to STDERR as before. + +=head2 clear_psgi + +Clears the PSGI environment attributes set by L. + =head2 meta =head1 SEE ALSO