<configuration scan="true" scanPeriod="1 minute"> [...] </configuration>
<!-- NativeLevelChangePropagator enables live configuration updates --> <contextListener class="de.planta.server.logging.NativeLevelChangePropagator"/>
scanPeriod
has expired, the configuration refreshing is not necessarily continued.
log/
directory of the PLANTA Server work directory.
PlantaServer.log
file.
PlantaServer.[NUMBER].log.zip
schema, is created.
PlantaSession-[SessionID].log
file is created for each session, in which messages belonging to the session are displayed.
log/
directory of the PLANTA Server work directory.
PlantaServer.log
file.
PlantaServer.[NUMBER].log.zip
schema, is created.
PlantaSession-[SessionID].log
file is created for each session, in which messages belonging to the session are displayed.
logback.xml
file. PLANTA provides a second logback_debug.xml
file, which already contains all necessary settings. In order for the logging to be activated, you simply have to rename both files. In order to deactivate the logging again, you only have to undo the renaming.
logback.xml
file arbitrarily.
logback_debug.xml
file to logback.xml
.
logback.xml
configuration file must be made. Procedure
[...] <!-- enable this for tracing/debugging logs in the PLANTA namespace --> <logger name="de.planta.server" level="debug"/> [...]
[...] <!-- enable the following to enable session logs; don't forget to uncomment the appender-ref to SESSIONLOG additionally --> <appender name="SESSIONLOG" class="ch.qos.logback.classic.sift.SiftingAppender"> <discriminator> <key>sessionId</key> <defaultValue>global</defaultValue> </discriminator> <sift> <appender name="FILE-${sessionId}" class="ch.qos.logback.core.FileAppender"> <file>log/PlantaSession-${sessionId}.log</file> <append>false</append> <encoder> <pattern>%d{HH:mm:ss.SSS} %level %marker %logger{35} - %msg%n</pattern> </encoder> </appender> </sift> </appender> [...]
Note[...] <!-- enable logging for messages with level <= info --> <root level="info"> <appender-ref ref="CONSOLE" /> <appender-ref ref="SERVERLOG" /> <appender-ref ref="SESSIONLOG" /> </root> </configuration>
Name space | Description |
---|---|
de.planta.server |
Name space of the PLANTA server |
de.planta.server.native |
Log messages from the native program parts are displayed within this name space |
de.planta.server.python |
Messages sent from the Python context via the interface are displayed within this name space |