org.zkoss.util.logging.config.file"

From Documentation
m (correct highlight (via JWB))
 
(3 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
'''Property:'''
 
'''Property:'''
 
  org.zkoss.util.logging.config.file
 
  org.zkoss.util.logging.config.file
 +
 +
{{GlobalLibraryProperty}}
  
 
  Default: none
 
  Default: none
Line 18: Line 20:
 
</source>
 
</source>
  
If a relative path is specified, it will look for the class path first. If not found, it will assume it is related to the current directory, i.e., the directory specified in the system property called <tt>user.dir</tt>.
+
ZK looks for the configuration file with the order below:
 +
 
 +
# in the class path
 +
# If the path is relative, it will assume it is relatuve to the directory specified in the system property called <code>user.dir</code>.
 +
#: If the path is absolute, ZK looks from the system root.
  
 
You could specify an absolute path, such as <code>/usr/jetty/conf/zk-log.properties</code>, if you are not sure what the current directory is.
 
You could specify an absolute path, such as <code>/usr/jetty/conf/zk-log.properties</code>, if you are not sure what the current directory is.
  
 
{{ZKConfigurationReferencePageFooter}}
 
{{ZKConfigurationReferencePageFooter}}

Latest revision as of 10:19, 19 January 2022


org.zkoss.util.logging.config.file


Property:

org.zkoss.util.logging.config.file
Applicable:
Dndsmalltalk-check-icon.png globally in zk.xml via <library-property>
Dndsmalltalk-cross-icon.png not as <custom-attribute>
Default: none
[Since 6.0.0]

It specifies the logging configuration file which is used to configure the logging of ZK internal functions. You generally don't need it unless you'd like to know how ZK operates internally. For more information, please refer to ZK Developer's Reference: Logger.

For example,

<library-property>
	<name>org.zkoss.util.logging.config.file</name>
	<value>conf/zk-log.properties</value>
</library-property>

ZK looks for the configuration file with the order below:

  1. in the class path
  2. If the path is relative, it will assume it is relatuve to the directory specified in the system property called user.dir.
    If the path is absolute, ZK looks from the system root.

You could specify an absolute path, such as /usr/jetty/conf/zk-log.properties, if you are not sure what the current directory is.



Last Update : 2022/01/19

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.