[Users] Monolog - DailyRollingFile

Cyrille Peninou [via Petals Forums] ml-node+s974793n4025310h84 at n3.nabble.com
Wed Sep 12 15:36:37 CEST 2012



Salut Christophe,

Merci pour ta réponse.
J'ai fouillé leur code et j'ai remarqué une classe DayFileHandler, mais
alors impossible de l'instancier :(
J'ai essayé en mettant /monolog.classname
org.objectweb.util.monolog.wrapper.log4j.MonologLoggerFactory/, mais je me
prends une erreur:
java.lang.NoClassDefFoundError: org/apache/log4j/spi/LoggerFactory
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at
org.objectweb.util.monolog.Monolog.instanciateMonologFactory(Monolog.java:295)
        at
org.objectweb.util.monolog.Monolog.getMonologFactory(Monolog.java:218)
        at
org.ow2.petals.kernel.server.PetalsServerImpl.initializeMonolog(PetalsServerImpl.java:380)
        at
org.ow2.petals.kernel.server.PetalsServerImpl.init(PetalsServerImpl.java:155)
        at
org.ow2.petals.launcher.AbstractLauncher.start(AbstractLauncher.java:189)
        at
org.ow2.petals.launcher.AbstractLauncher.launch(AbstractLauncher.java:147)
        at org.ow2.petals.distribution.platform.Main.main(Main.java:42)
Caused by: java.lang.ClassNotFoundException:
org.apache.log4j.spi.LoggerFactory
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        ... 9 more

Pourtant la librairie log4j-1.2.13, dans le dossier lib, contient bien cette
classe.

Même si j'écris le code du DailyRollingFile, comment je fais pour que cela
soit pris en compte, vu que la création des loggers se fait au démarrage de
petals  (mis à part rebuilder la librairie monolog et remplacer
monolog-2.1.10.jar) ?

Cdt




_______________________________________________
If you reply to this email, your message will be added to the discussion below:
http://forum.petalslink.com/Monolog-DailyRollingFile-tp4025306p4025310.html
To start a new topic under Users (get help, provide help), email ml-node+s974793n2681628h42 at n3.nabble.com
To unsubscribe from Users (get help, provide help), visit http://forum.petalslink.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2681628&code=dXNlcnNAZm9ydW0ucGV0YWxzbGluay5vcmd8MjY4MTYyOHwtOTE3MDU0NjU4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum-list.petalslink.org/pipermail/users/attachments/20120912/4fa3516f/attachment-0001.html>


More information about the Users mailing list