Logging facility for JTGO

Article ID: 2161
Last updated: 30 May, 2018
Article ID: 2161
Last updated: 30 May, 2018
Revision: 3
Views: 742
Posted: 18 Mar, 2010
by Dean J.
Updated: 30 May, 2018
by Gargani A.

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 <JTGO_HOME>samples\equipment\equipmenteditor\resources\properties\editor_logging.properties as a template.

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

This article was:   Helpful | Not helpful
Report an issue
Article ID: 2161
Last updated: 30 May, 2018
Revision: 3
Views: 742
Posted: 18 Mar, 2010 by Dean J.
Updated: 30 May, 2018 by Gargani A.
Also read

Also listed in


Others in this category