[Catalyst] STDERR/Debug/Log File

QE :: Felix Ostmann ostmann at qe.de
Tue Dec 15 08:12:23 GMT 2015


Hello,

we are using Log4perl to log in different logfiles (paniclog (ERROR &
PANIC) + app.log (DEBUG & INFO & WARN & ERROR & PANIC)). Also we override
die() & warn() to write into  logfiles before write to STDERR.

It is possible to use a special app-debug.log only for DEBUG-level messages.

Mit freundlichen Grüßen
Felix Ostmann

_________________________________________________

QE GmbH & Co. KG
Martinistraße 3
49080 Osnabrück
Deutschland

Tel.: +49 (0) 541 / 40666 11
Fax: +49 (0) 541 / 40666 22
Email: info at qe.de
Web: www.qe.de

Unsere Geschäftszeiten:
Montag bis Freitag von 8 bis 16 Uhr

Firmensitz: Osnabrück
AG Osnabrück - HRA 200252
Steuer-Nr.: 66/204/54104
Ust-IdNr.: DE814737310

Komplementärin:
QE24 GmbH
AG Osnabrück - HRB 200359
Geschäftsführer: Ansas Meyer
_________________________________________________


Die in dieser Email enthaltenen Informationen sind vertraulich
zu behandeln und ausschließlich für den Adressaten bestimmt.
Jegliche Veröffentlichung, Verteilung oder sonstige in diesem
Zusammenhang stehende Handlung wird ausdrücklich untersagt.

2015-12-15 8:39 GMT+01:00 Andrew <catalystgroup at unitedgames.co.uk>:

> Couldn't find a clear answer via google, so am choosing to pick your
> brains on this....
>
> How does one get error information, for debugging, going into a text file
> instead of to the terminal window?
>
> The context is a Catalyst App started via a Plackup command.
> Do I add something to that command line command (does 2> work with
> plackup?),
> or do I add something to the script in my Catalyst app?
>
> Either way, I'd like STDERR to go to a specified text file, instead of to
> the terminal window.
>
> It sounds stupidly simple, only a few google searches later, the answer is
> still surprisingly unclear, =S.
>
> Grateful for any help.
>
> If there's more than one way to do it, any advice on best practice also
> appreciated.
>
> Yours,
> Andrew.
>
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/catalyst/attachments/20151215/a331e558/attachment.htm>


More information about the Catalyst mailing list