0

Disable zk-logging

asked 2007-01-03 15:51:21 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4084064

By: taffit_

Hello,

I've found (and managed) to enable logging in zk by modifying zk.xml and creating the i3-log.conf-file.
However as we have to use log4j we must disable all other logging mechanisms.
If I just remove the appropriate lines in the zk.xml-file and delete the i3-log.conf-file I still get the following message on tomcat-startup:
INFO: Parsing jndi:/localhost/example/WEB-INF/zk.xml
03.01.2007 16:37:01 org.zkoss.util.logging.LogService <init>:147
INFO: File not found: C:\xampp\tomcat\bin\conf\i3-log.conf

Now how can I DISABLE the zk-logging completly? It seems that it tries to enable itself just if the org.zkoss.util-lib is there.

In the forums and docs there is only advice how to enable it.

Thx in advance

taffit


delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2007-01-04 04:12:37 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4085108

By: tomyeh

ZK uses the standard logging which usually can be disabled by configuring Web server property. Please consult the manual of your Web server if you like.

Or, you might invoke the following in your program:
Logger.getLogger("org.zkoss").setLevel(Level.OFF);

I posted a request to disable logs in ZK way:
(http://sourceforge.net/tracker/index.php?func=detail&aid=1627515&group_id=15276
2&atid=785194) But you have to wait for next freshly.

link publish delete flag offensive edit

answered 2014-10-09 04:47:16 +0800

siva477 gravatar image siva477
57

Hi,

We are using log4j.xml for logging in my application . But on console we getting ZK log continuously. Because of this, we are unable to trace any issues on DEBUG. I used logging-OFF condition in web.xml file as below.

Required any suggestions to control ZK logging. Thanks in Advance...

<servlet>
        <description>ZK loader for ZUML pages</description>
        <servlet-name>zkLoader</servlet-name>
        <servlet-class>org.zkoss.zk.ui.http.DHtmlLayoutServlet</servlet-class>
        <init-param>
            <param-name>update-uri</param-name>
            <param-value>/zkau</param-value>
        </init-param>
        <init-param>
            <param-name>log-level</param-name>
            <param-value>OFF</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>
link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2007-01-03 15:51:21 +0800

Seen: 296 times

Last updated: Oct 09 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More