PEtALS Log configuration

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

PEtALS Log configuration

sbuchan
Hi,

I'm configuring loggers.properties from Petals JBI Container - version: 2.2.1

I'd like to put all logs in only one file "petals.log".

I configured the loggers.properties like that:

Code:

# -----------------------------------------------------------------------
# Petals : global configuration logger
# -----------------------------------------------------------------------
logger.Petals.cleanHandlers true
logger.Petals.additivity false

handler.petalsLF.type File
handler.petalsLF.output petals.log
handler.petalsLF.pattern %l %d [%t]%n    %m%n
handler.petalsLF.appendMode true
#handler.petalsLF.maxSize 1000000
handler.petalsLF.level INFO


when I restart the server, petals.log is emptied.

How can I configure the loggers.properties to not lose logs after restarting the server?

BR




-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=246#246

-------------------- m2f --------------------

_______________________________________________
Users mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: PEtALS Log configuration

sbuchan
Hi,

I am not a Log4 expert, but when reading your post, I wonder what happens if you set the property logger.Petals.additivity to true?

Regards,
Gaƫl




-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=257#257

-------------------- m2f --------------------

_______________________________________________
Users mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: PEtALS Log configuration

sbuchan
In reply to this post by sbuchan
Hi, there was a bug on the handling of the 'appendMode'.
It is solved on the trunk and on the just upcoming release PEtALS 2.3 platform.

/Roland




-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=267#267

-------------------- m2f --------------------

_______________________________________________
Users mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/users