[ClientParameters#Log][log]]
parameter with the required values (e.g. = log= = protocol)
planta.ini
or
Example of a client-link
- Right-click on client link and select properties.
- Enter the following in the Target field at the end of the given path:
log
= protocol.- Click on Copy or OK.
log
directory in which the client log files are saved is created within the client directory (in the example above, the client directory is shown in the Run in field). planta_programmer
: This log file is created once and contains technical information relevant for developers.
planta_support_yyyy_m_d_hh_mm_ss
: Contains various client error and status messages
protocol_dump_yyyy_m_d_hh_mm_ss
: Contains XML-messages that are sent back and forth between client and server logback.xml
and logback_debug.xml
). In order to activate the creation of a session based log file, you simply have to rename the files as follows.
logback.xml
file in the PLANTA Server directory arbitrarily.
logback_debug.xml
file to logback.xml
.
log
directory.
logback.xml
configuration file must be made. The file is located in the installation directory under conf/logback.xml.
[...] <!-- 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> [...]
[...] <!-- enable logging for messages with level <= info --> <root level="info"> <appender-ref ref="CONSOLE" /> <appender-ref ref="SERVERLOG" /> <appender-ref ref="SESSIONLOG" /> </root> </configuration>
log
directory.
logback.xml
file at the beginning. ppms.conf
or planta.conf
(depending on which PLANTA version you currently use): LOG_LEVEL
= 15
PLANTA_LOG_VERBOSE_SQL
= 1
PLANTA_LOG_FLUSH
= 1
reload_server()
python function. Changes in the .conf now apply to all newly opened sessions (. If changes have been made to data items, data tables, etc., after rebooting, they apply to all newly launched sessions as well. planta.Session ID.yyyy-mm-dd_hh-mm-ss.debug.log
planta.Session-ID.yyyy-mm-dd_hh-mm-ss.log
ppms.conf
or planta.conf
(depending on which PLANTA version you currently use): LOG_LEVEL
= 15
PLANTA_LOG_VERBOSE_SQL
= 1
PLANTA_LOG_FLUSH
= 1
ppms.PID.yyyy-mm-dd_hh-mm-ss.debug.log
ppms.PID.yyyy-mm-dd_hh-mm-ss.log
ppms.PID.stderr.log