Difference between revisions of "Config:Logging"
From SUMOwiki
Jump to navigationJump to searchm (New page: == Logging == === Custom Options === Available options: <source lang="xml"> <Option key="handlers" value="java.util.logging.ConsoleHandler,java.util.logging.FileHandler"/> <Option key=".le...) |
m |
||
Line 2: | Line 2: | ||
=== Custom Options === | === Custom Options === | ||
Available options: | Available options: | ||
− | <source lang="xml"> | + | <source xmlns:saxon="http://icl.com/saxon" lang="xml"> |
+ | |||
+ | <!--Specify the handlers to create in the root logger (all loggers are children of the root logger) The following creates two handlers--> | ||
<Option key="handlers" value="java.util.logging.ConsoleHandler,java.util.logging.FileHandler"/> | <Option key="handlers" value="java.util.logging.ConsoleHandler,java.util.logging.FileHandler"/> | ||
+ | <!--Set the default logging level for the root logger--> | ||
<Option key=".level" value="INFO"/> | <Option key=".level" value="INFO"/> | ||
+ | <!--This setting determins how much output you see on your console--> | ||
<Option key="java.util.logging.ConsoleHandler.level" value="INFO"/> | <Option key="java.util.logging.ConsoleHandler.level" value="INFO"/> | ||
+ | <!--Set the default formatter--> | ||
<Option key="java.util.logging.ConsoleHandler.formatter" value="ibbt.sumo.util.SUMOFormatter"/> | <Option key="java.util.logging.ConsoleHandler.formatter" value="ibbt.sumo.util.SUMOFormatter"/> | ||
+ | <!--Log everything to file--> | ||
<Option key="java.util.logging.FileHandler.level" value="ALL"/> | <Option key="java.util.logging.FileHandler.level" value="ALL"/> | ||
+ | <!--Set the default formatter--> | ||
<Option key="java.util.logging.FileHandler.formatter" value="ibbt.sumo.util.SUMOFormatter"/> | <Option key="java.util.logging.FileHandler.formatter" value="ibbt.sumo.util.SUMOFormatter"/> | ||
+ | <!--Max logfile size in bytes--> | ||
<Option key="java.util.logging.FileHandler.limit" value="0"/> | <Option key="java.util.logging.FileHandler.limit" value="0"/> | ||
+ | <!--How many output files to cycle through--> | ||
<Option key="java.util.logging.FileHandler.count" value="1"/> | <Option key="java.util.logging.FileHandler.count" value="1"/> | ||
+ | <!--Should existing files be appended--> | ||
<Option key="java.util.logging.FileHandler.append" value="false"/> | <Option key="java.util.logging.FileHandler.append" value="false"/> | ||
+ | <!--The file naming pattern--> | ||
<Option key="java.util.logging.FileHandler.pattern" value="output/SUMO-Toolbox.%g.%u.log"/> | <Option key="java.util.logging.FileHandler.pattern" value="output/SUMO-Toolbox.%g.%u.log"/> | ||
+ | <!--Set the default logging level for the SUMO-Toolbox--> | ||
<Option key="ibbt.sumo.level" value="FINEST"/> | <Option key="ibbt.sumo.level" value="FINEST"/> | ||
− | <Option key="Matlab.level" value="FINEST"/> | + | <!--Set the default logging level for the SUMO-Toolbox--> |
− | </source> | + | <Option key="Matlab.level" value="FINEST"/></source> |
Revision as of 13:54, 13 February 2008
Logging
Custom Options
Available options:
<!--Specify the handlers to create in the root logger (all loggers are children of the root logger) The following creates two handlers-->
<Option key="handlers" value="java.util.logging.ConsoleHandler,java.util.logging.FileHandler"/>
<!--Set the default logging level for the root logger-->
<Option key=".level" value="INFO"/>
<!--This setting determins how much output you see on your console-->
<Option key="java.util.logging.ConsoleHandler.level" value="INFO"/>
<!--Set the default formatter-->
<Option key="java.util.logging.ConsoleHandler.formatter" value="ibbt.sumo.util.SUMOFormatter"/>
<!--Log everything to file-->
<Option key="java.util.logging.FileHandler.level" value="ALL"/>
<!--Set the default formatter-->
<Option key="java.util.logging.FileHandler.formatter" value="ibbt.sumo.util.SUMOFormatter"/>
<!--Max logfile size in bytes-->
<Option key="java.util.logging.FileHandler.limit" value="0"/>
<!--How many output files to cycle through-->
<Option key="java.util.logging.FileHandler.count" value="1"/>
<!--Should existing files be appended-->
<Option key="java.util.logging.FileHandler.append" value="false"/>
<!--The file naming pattern-->
<Option key="java.util.logging.FileHandler.pattern" value="output/SUMO-Toolbox.%g.%u.log"/>
<!--Set the default logging level for the SUMO-Toolbox-->
<Option key="ibbt.sumo.level" value="FINEST"/>
<!--Set the default logging level for the SUMO-Toolbox-->
<Option key="Matlab.level" value="FINEST"/>