Spatial Logging
The logback.xml file allows you to control on logging behavior, such as sending output to a log file instead of by default sending it to the console which redirects to the spectrum-server.log. You can also set the log level to turn off logging altogether or log only fatal errors, for example.
Default logback file
(<Installed>\Pitney Bowes\Spectrum\server\modules\spatial\logback.xml)
<?xml version="1.0" encoding="UTF-8"?>
<!-- =================================================================================== -->
<!-- Logger configuration for remote components -->
<!-- -->
<!-- log to console, redirected to Platform log (server\logs\spectrum-server.log) -->
<!-- log to files, redirected to (server\modules\spatial\spatial.XXX.log) -->
<!-- -->
<!-- for general information about the configuration file, check out the logback manual -->
<!-- at http://logback.qos.ch/manual/configuration.html -->
<!-- =================================================================================== -->
<configuration>
<appender name="CONSOLE-SPATIAL" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>[Spatial] - [%thread] %-5level %logger{35} - %msg%n</pattern>
</encoder>
</appender>
<!--appender name="FILE-SPATIAL" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${g1.server.modules.dir}/spatial/${component.name}.log</file>
<encoder>
<pattern>%d [%thread] %-5level %logger{35} - %msg%n</pattern>
</encoder>
<append>true</append>
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>10MB</maxFileSize>
</triggeringPolicy>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>${component.name}.log.%i</fileNamePattern>
<maxIndex>1</maxIndex>
</rollingPolicy>
</appender-->
<!-- Level: OFF, ERROR, WARN, INFO, DEBUG -->
<logger name="com.mapinfo.midev" level="INFO" additivity="false">
<appender-ref ref="CONSOLE-SPATIAL"/>
<!-- appender-ref ref="FILE-SPATIAL"/ -->
</logger>
</configuration>
Option | Values |
---|---|
Level |
|
Output |
|