[logback-user] Which Appender strategy for this need ? [C1]
Christophe LALLEMENT
Christophe.LALLEMENT at sgcib.com
Wed Oct 14 16:56:10 CEST 2009
Hello
I have a simple logging strategy but i'm not able to find a good logback
configuration to get the right result.
My context:
-> an application which is started (and killed) every day (and run several
hours, but not more that 1 day)
My Need
-> keep 5 days of log history (into 5 files or 5 directory with files ..)
-> if possible zip/gzip history files
-> several intraday run must log into the same file.
-> if possible, current log file is not versionned with date prefix (or
directory specific structure).
What i understand after reading logback documentation:
1/ use of file name which contains day information
=> OK but history are not managed (and no more compression)
2/ Rolling appender
=> Seems to not work because timebasedrolling policy suppose that
process run many daus without stopping
Is it right ?
Is there a solution ? if not which is the best approach.
Thx
Regards
Christophe Lallement
Technical Architect
ITEC/IBD/DAI
17, cours Valmy
92800 Puteaux
Tel.: +33 (0)1.42.13.94.21
christophe.lallement at sgcib.com
*************************************************************************
This message and any attachments (the "message") are confidential, intended solely for the addressee(s), and may contain legally privileged information.
Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration.
Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or
falsified.
************
Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et susceptibles de contenir des informations couvertes
par le secret professionnel.
Ce message est etabli a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite.
Tout message electronique est susceptible d'alteration.
La SOCIETE GENERALE et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie.
*************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://qos.ch/pipermail/logback-user/attachments/20091014/6d40cb4d/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 962 bytes
Desc: not available
URL: <http://qos.ch/pipermail/logback-user/attachments/20091014/6d40cb4d/attachment-0002.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 2872 bytes
Desc: not available
URL: <http://qos.ch/pipermail/logback-user/attachments/20091014/6d40cb4d/attachment-0003.gif>
More information about the Logback-user
mailing list