Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Does Catalyst by default have its own logging, and if so, where?

by Anonymous Monk
on Nov 04, 2020 at 14:21 UTC ( [id://11123391]=note: print w/replies, xml ) Need Help??


in reply to Does Catalyst by default have its own logging, and if so, where?

Catalyst logging is customarily (but, not necessarily) based on the Catalyst::Log facility, which usually then uses Log::Log4Perl or Log::Dispatch. See the "debugging" section of the Catalyst::Manual. You should surf the source-code and configuration files of this application to see exactly how they did it this time. Also check for configuration switches particular to "production" which might be different for "development."
  • Comment on Re: Does Catalyst by default have its own logging, and if so, where?

Replies are listed 'Best First'.
Re^2: Does Catalyst by default have its own logging, and if so, where?
by Cody Fendant (Hermit) on Nov 05, 2020 at 02:04 UTC

    I have checked the config, and I've grepped through the source code. There are calls in the source code to $c->log->error->('foo') and I've added my own and there's nothing obvious going on.

    I've looked through /var/log and can't see anything with Catalyst, or the names of the apps in question, or anything changes when I run catalyst code to which I've added an error call.

    I would have thought if Catalyst did not have a logging system enabled, then trying to log an error would have itself thrown an error. It's a mystery.

      You didn't actually expect his "help" to be worth more than the space of the electrons they're taking up, did you?

        Honestly not sure what point you’re making, sorry.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11123391]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-04-25 22:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found