Home
Categories
Dictionary
Download
Project Details
Changes Log
Tutorials
FAQ
License

Logging the Plugins registering process through Command-line arguments


    1  Overview
    2  Example
    3  See also

It is possible to specify the Command-line arguments file to specify the level of logging for the Plugins initialization.

To do that, you can add an argument in the Command-line arguments file which will represent the level of logging.

Overview

The argument type is logPluginsRegisterProgress. For example:
   <argument key="logRegister" type="logPluginsRegisterProgress" />
The argument value will be a String, but you don't need to process it explicitly. If the framework encounter an argument of this type, it will set the PluginsManager logging level accordingly.

The values of the argument can be:
If the application explicitly sets the PluginsManager.logRegisterProgress(char logProgress) method, then the level set by the command-line arguments will be overriden.

Example

Suppose the following Command-line arguments file:
   <arguments>
      <argument key="arg1" type="int" />
      <argument key="logRegister" type="logPluginsRegisterProgress" /> 
   </arguments>
With the following command-line arguments to launch the application:
      arg1=23 logRegister=true ...
Then the exceptions messages and the information messages will be present.

See also


Categories: Commandline

Copyright 2006-2023 Herve Girod. All Rights Reserved. Documentation and source under the LGPL v2 and Apache 2.0 licences