The EAServer Java client runtime classes also use the EAServer logging system. By default, the log level is ERROR and messages are sent to the console. You can change the client logging settings by specifying a configuration file. The same procedure works for Java/CORBA and EJB clients, as well as EAServer Manager and jagtool.
Specifying log settings for Java client applications
Use EAServer Manager to create a log profile with the desired settings and export the settings to a properties (.props) file.
When running the application, specify the logging properties to use by setting the Java system property com.sybase.jaguar.logger.config.file to the path and file name of the properties file. For example, to specify the system property on the command line, use syntax like this:
java -Dcom.sybase.jaguar.logger.config.file=mylog.props \ com.mycompany.MyClient
Copyright © 2005. Sybase Inc. All rights reserved. |