| | | | Browse by category |
Question
Does JTGO provide a logging facility?
Answer
JTGO provides a comprehensive set of loggers for the various parts ofthe JTGO API.
Loggers Organization
The loggers are provided as static members of an Ilp[xxx]Loggers
class that exists for each of the major packages within JTGO. For example, the class ilog.cpl.network.IlpNetworkLoggers serves as a grouping class for the various loggers responsible for the logging of the ilog.cpl.network package.
Here are some of these loggers:
- ilog.cpl.network.IlpNetworkLoggers
...
- ilog_cpl_network
- ilog_cpl_network_adapter
- ilog_cpl_network_config
- ilog_cpl_network_controller
For complete list of loggers responsible for the ilog.cpl.network package, see the IlpNetworkLoggers Java API documentation.
There are other loggers available that do not follow the organization described above:
ilog.cpl.IlpSystem
(See the Java API documentation for more details.)
Configuring Loggers
For details on how to configure loggers, see related article: Accessing and configuring JViews logging traces. Within JTGO, the same exact concepts and syntax are used, except that you should specify JTGO specific packages, like ilog.cpl
or ilog.tgo
.
You can use the file
For example, if you want the ilog_cpl_network.
IlpNetworkLoggers
to log at the warning
level, you would enter the following line in your my_logging.properties
file:
ilog.cpl.network.level=WARNING