Page tree

SAYMON документация

Skip to end of metadata
Go to start of metadata

Log-files can be configured in the following file:

   /opt/saymon-agent/conf/logback-upstart.xml

Debug-mode section:

<appender name="FILE-DEBUG" class="ch.qos.logback.core.rolling.RollingFileAppender">

        <file>/var/log/saymon/saymon-agent.debug.log</file>

        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">

            <!-- Daily rollover -->

            <fileNamePattern>/var/log/saymon/saymon-agent.debug.%d{yyyy-MM-dd}.log.gz</fileNamePattern>

            <!-- Keep 10 days' worth of history -->

            <maxHistory>10</maxHistory>

        </rollingPolicy>

        <encoder>

            <pattern>%d{dd.MM.yyyy HH:mm:ss.SSS} [%-15thread] %-5level %logger{36} - %msg%n</pattern>

        </encoder>

    </appender>

where:

    <file>/var/log/saymon/saymon-agent.debug.log</file> - log-file location;

    <fileNamePattern>... .gz</fileNamePattern> - instruction to archive log-files to .gz format;

    <maxHistory>10</maxHistory> - number of days to keep log-files.


To disable debug-mode comment the corresponding string in root section as follows:

<!--<appender-ref ref="FILE-DEBUG"/>-->

Settings and structure of the general log section are same to debug-mode section:

<appender name="FILE-INFO" class="ch.qos.logback.core.rolling.RollingFileAppender">

     ...

    </appender>
  • No labels