Question with turning off logging

Hi!
I am having trouble turning off all logging from withing Tomcat. I keep
seeing logs like this:
16/06/2003 17:02:52 com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:9889177; T:6386542; D:1133335 ] begin rollback
16/06/2003 17:02:52 com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:9889177; T:6386542; D:1133335 ] end rollback 0ms
16/06/2003 17:02:52 com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:9889177; T:6386542; D:1133335 ] return
[com.solarmetric.datasource.PoolConnection@96e599[identityHashCode:1230
4886,wrapped:com.solarmetric.datasource.PreparedStatementCache$CacheAwareConnection@96e599[identityHashCode:12263085,wra
pped:com.mysql.jdbc.jdbc2.Connection@96e599]:
[requests=160;size=57;max=70;hits=103;created=57;redundant=0;overflow=0;ne
w=57;leaked=0;unavailable=0]]] to
[com.solarmetric.datasource.DataSourceImpl$SortablePool[min=0; max=10;
size=2; taken=1
My log4j.properties is this:
log4j.rootCategory=ERROR, console
# disable INFO and below
log4j.disable=INFO
log4j.category.com.solarmetric.kodo.impl.jdbc.SQL=ERROR, console
log4j.category.com.solarmetric.kodo.impl.jdbc.JDBC=ERROR, console
log4j.category.com.solarmetric.kodo.impl.jdbc.Schema=ERROR, console
log4j.category.com.solarmetric.kodo.Performance=ERROR, console
log4j.category.com.solarmetric.kodo.MetaData=ERROR, console
log4j.category.com.solarmetric.kodo.Enhance=ERROR, console
log4j.category.com.solarmetric.kodo.Query=ERROR, console
log4j.category.com.solarmetric.kodo.Runtime=ERROR, console
log4j.category.com.solarmetric.datasource.DataSourceImpl=ERROR, console
log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.console.layout=org.apache.log4j.PatternLayout
log4j.appender.console.layout.ConversionPattern=%-5p %c: %m%n
log4j.appender.console.Threshold=WARNING
Is there anyone who knows how to get rid off this. It seems to be severly
degrading performance....
Thanks in advance,
Nic
[email protected]

I also asked this question and was referred to various
documentation pages here and there. Still haven't figured
it out and would like to know the answer (but see more below).
See our detailed docs at:
http://solarmetric.com/Software/Documentation/2.5.0/docs/ref_guide_logging.html
The information on this page seems to imply that Log4j
will not be used AT ALL if one is using Java 1.4.x.
Here's a quote from that page
"When using JDK 1.4 or higher, the built-in logging package provided by
the java.util.logging package will be used."
I didn't really want to use that package but it did work for me.
I copied a default logging.properties file to ../WEB-INF/classes
and changed the INFO verbosity level (on '.level' line) to SEVERE.
Then, set the environment variable CATALINA_OPTS to include
a runtime property argument to Java (as hinted in 'catalina.sh').
For me, under tcsh, this looks like (following should be on one line):
% setenv CATALINA_OPTS
'-Djava.util.logging.config.file="logging.properties"'
Now when Tomcat starts up, it passes this option to Java,
the catalina.out file in 'logs' is (mercifully) very small
and doesn't have any Kodo logging in it.
I hope this helps, but if you ever find out how to use Log4j,
I would really appreciate knowing. Thanks,
-tom
Stephen kim previously responded:
My guess is that the log4j.properties is not being picked up in the proper
classpath. As I recall, certain versions of Tomcat include Jakarta
logging which may take control of the logging mechanism.
I recommend setting the System properties explictly for a Log impl (see
Jakarta's website at jakarta.apache.org) and NOT rely on default
"discovery" techniques. I would even go a step further and explictly
control log4j's configuration as well.
See our detailed docs at:
http://solarmetric.com/Software/Documentation/2.5.0/docs/ref_guide_logging.html
For those using applications without a simple way to set System
properties, one can usually hook it into your application to run in some
sort of static block before the system is used (i.e. the entry points for
your application)
static
System.setProperty ("....");
On Mon, 16 Jun 2003 18:14:35 +0000, Sarit Kapur wrote:
I am having similar problems when running in Websphere .
Sarit
Nic Cottrell wrote:
Hi!
I am having trouble turning off all logging from withing Tomcat. I keep
seeing logs like this:
16/06/2003 17:02:52 com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:9889177; T:6386542; D:1133335 ] begin rollback
16/06/2003 17:02:52 com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:9889177; T:6386542; D:1133335 ] end rollback 0ms
16/06/2003 17:02:52 com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:9889177; T:6386542; D:1133335 ] return
[com.solarmetric.datasource.PoolConnection@96e599[identityHashCode:1230
4886,wrapped:com.solarmetric.datasource.PreparedStatementCache$CacheAwareConnection@96e599[identityHashCode:12263085,wra
pped:com.mysql.jdbc.jdbc2.Connection@96e599]:
[requests=160;size=57;max=70;hits=103;created=57;redundant=0;overflow=0;ne
w=57;leaked=0;unavailable=0]]] to
[com.solarmetric.datasource.DataSourceImpl$SortablePool[min=0; max=10;
size=2; taken=1
My log4j.properties is this:
log4j.rootCategory=ERROR, console
# disable INFO and below
log4j.disable=INFO
log4j.category.com.solarmetric.kodo.impl.jdbc.SQL=ERROR, console
log4j.category.com.solarmetric.kodo.impl.jdbc.JDBC=ERROR, console
log4j.category.com.solarmetric.kodo.impl.jdbc.Schema=ERROR, console
log4j.category.com.solarmetric.kodo.Performance=ERROR, console
log4j.category.com.solarmetric.kodo.MetaData=ERROR, console
log4j.category.com.solarmetric.kodo.Enhance=ERROR, console
log4j.category.com.solarmetric.kodo.Query=ERROR, console
log4j.category.com.solarmetric.kodo.Runtime=ERROR, console
log4j.category.com.solarmetric.datasource.DataSourceImpl=ERROR, console
log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.console.layout=org.apache.log4j.PatternLayout
log4j.appender.console.layout.ConversionPattern=%-5p %c: %m%n
log4j.appender.console.Threshold=WARNING
Is there anyone who knows how to get rid off this. It seems to be severly
degrading performance....
Thanks in advance,
Nic
[email protected]
Steve Kim
[email protected]
SolarMetric Inc.
http://www.solarmetric.com

Similar Messages

  • Turning off logging.

    Is it possible to turn off logging for a session or the entire DB? (I know that it will make the DB unrecoverable, but that is of no concern.) How is this done?
    I found a nologging clausul that could be used when creating tables from another and creating indexes. But I could not figure out how to apply this to a session or an arbitrary query.

    Is it possible to turn off logging for a session or
    the entire DB? (I know that it will make the DB
    unrecoverable, but that is of no concern.) How is
    this done?I hope that you saying something about archive logging it it is the case then at mount stage say alter database noarchivelog and set log_archive_start=false
    I found a nologging clausul that could be used when
    creating tables from another and creating indexes.
    But I could not figure out how to apply this to a
    session or an arbitrary query.You can alter or create a table with nologging features it actually what ever DML actions performed on the table doesnot log so the recovery of the particular tables will definite miss when performing recovery.
    Creating an Index in NOLOGGING Mode: Example
    If the sample table orders had been created using a fast parallel load (so all rows were already sorted), you could issue the following statement to quickly create an index.
    /* Unless you first sort the table oe.orders, this example fails
    because you cannot specify NOSORT unless the base table is
    already sorted.
    CREATE INDEX ord_customer_ix_demo
    ON orders (order_mode)
    NOSORT
    NOLOGGING;

  • Turn off log level for Individual Users

    Hi,
    we want to turn off logging level of individual users. We usually go to Identity and click on the user to set log level '0' but we have LDAP security setup so don't have idea how to do it.
    Any Ideas
    Thxs
    SYK

    Ok I will try to Set System Variable LOGLEVEL
    As we are using LDAP security we will not have users in RPD so i cant set to'0' in rpd.
    New Question: Suppose If I am able to set log level to '0' for a user i.e User1 and when he logs into OBIEE and get's a error  while running report like say table or view doesn't exist or non of fact table is compatible or number records exceed etc... and Error will show to user as Error Number and says "Please contact System Administrator for more details".
    Me considering as Admin if i want to debug that error that User1 is getting from above scenario  and when i open nqquery log file will I be able to see the log for that report which User1 is getting error or will it show NO LOGLEVEL Found.
    Thxs
    SYK

  • Run shutdown oc4j instance automatically when user Turn off/Log off

    Hi All,
    Can you help me anyone to run the shutdown oc4j instance automatically when user Turn off/Log off the application or the computer?
    I want to use any Schema level trigger if possible to solve the issue.
    I am using oracle Developer Suite 10g and Database 10g as well.
    Arif

    Ah, sorry I misunderstood your question (probably not enough coffee in the morning); anyway there are folders for scripts which should be executed on startup / shutdown or logon / logoff:
    Startup
    %SYSTEMROOT%\System32\GroupPolicy\Machine\Scripts\StartupShutdown
    %SYSTEMROOT%\System32\GroupPolicy\Machine\Scripts\ShutdownLogon
    %SYSTEMROOT%\System32\GroupPolicy\User\Scripts\LogonLogoff
    %SYSTEMROOT%\System32\GroupPolicy\User\Scripts\LogoffWrite a script to startup / shutdown your OC4J (probably calls to startinst.bat and stopinst.bat) and place them in the apropriate folders.
    cheers

  • Turning off logging for mac moves

    Does anyone know a way to turn off logging for mac moves?

    You cannot turn off the transaction, however there are certain operations that are can be minimally logged
    Operations That Can Be Minimally Logged
    Look at the bulk copy operation which is minimally logged
    Performing Bulk Copy Operations
    Satheesh
    My Blog |
    How to ask questions in technical forum

  • Beryl and Turn Off, Log Out etc problem.

    When Beryl is enabled and I press the Log Out... button from the kmenu or with right click to the Desktop the screen goes Completely Black and I can turn off the pc. Pressing any key of the keyboard or of the mouse the black screen disappears and everything looks normal. Trying Log Out again the same thing happens.  Some time the screen doesn't goes black but it turns gray with the program End Session for "UserName" witch contains the buttons End Current Session, Turn Off Computer etc is also behind the gray screen and I cant use it. Pressing any key the Desktop is restored. Pressing Ctrl + Alt + F1 and shuting down as root initiates the shutdown procedure but the systems hugs in saving alsas levels.
    I am using:
    KDE: 3.5.6
    Beryl: 0.2.1-1
    Kernel26: kernel26beyond 2.6.20.beyond2-1 (from testing)
    Nvidia: nvidia 1.0.9755-1 (FX5200 gpu)

    Hello Reinold.
    What type of account is this (POP, IMAP, .Mac)?
    Does your wife have any third-party Mail plugins? Does she have either a /Library/Mail/Bundles or a ~/Library/Mail/Bundles folder in the Finder?
    Go to Apple Menu > System Preferences > Accounts > Login Items. What do you see there?
    In Mail, open Window > Activity Viewer. What do you see there when Mail refuses to quit? Actually, you may be able to avoid having to force quit Mail by canceling whatever it's doing (by clicking on the red stop icon of the activity).
    Note: For those not familiarized with the ~/ notation, it refers to the user's home folder. You can easily locate any of the folders referred to in this post by copying the file path here, doing Go > Go to Folder in the Finder, and pasting the file path there.

  • As a follow up from my recent question, I turned off the compatibility mode under all and regular, clicked out ok, ok then then went to itunes and played a song as they said to, and then tried to open the store and STILL CANNOT OPEN STORE, please Help!!!

    Turning off the compatibility mode by deselecting the check box under each thing that it wants did nothing for my access to the itunes store, still a white page with "itunes store" in the middle of it.  This is getting rediculous! Someone with computer smarts please help, I am at the end of my rope!

    Close your iTunes,
    Go to command Prompt -
    (Win 7/Vista) - START/ALL PROGRAMS/ACCESSORIES, right mouse click "Command Prompt", choose "Run as Administrator".
    (Win XP SP2 n above) - START/ALL PROGRAMS/ACCESSORIES/Command Prompt
    In the "Command Prompt" screen, type in
    netsh winsock reset
    Hit "ENTER" key
    Restart your computer.
    If you do get a prompt after restart windows to remap LSP, just click NO.
    Now launch your iTunes and see if it is working now.
    If you are still having these type of problems after trying the winsock reset, refer to this article to identify which software in your system is inserting LSP:
    iTunes 10.5 for Windows: May see performance issues and blank iTunes Store
    http://support.apple.com/kb/TS4123?viewlocale=en_US

  • Turn-off Log-in

    How do I turn off the log-in on the start-up screen. I just upgraded my MacBook Pro to 10.10.1.

    Open the Security pane of System Preferences, check that it's not set to disallow automatic login and that FileVault is turned off, and then enable automatic login from the Accounts pane.
    (118127)

  • Help with turning off in-camera selected aspect ratios - Please!

    I shoot a Olympus e-P2. It allows me to change the aspect ratio of the file i.e. 4:3, 16:9 etc. I like to use this feature as 'masks' when I shoot to help with composition. When I open the RAW file in bridge or Camera Raw, this pre-selected aspect is automatically cropped from the file. I want to see the entire file, not the cropped version. The Oly software gives me this option, but I can't figure out how to turn off this 'feature' in Bridge or Camera Raw. Any help would be greatly appreciated.

    Your adobe product is only doing what the camera data told it to. However, in the raw converter you can try activating the crop tool then right click the image and choose to remove the crop. That may work (or not).

  • How do I turn off log-in at startup

    I hate having to log in to start my computer. How do I turn this step off?

    Open the Security pane of System Preferences, check that it's not set to disallow automatic login and that FileVault is turned off, and then enable automatic login from the Accounts pane.
    (118127)

  • Problems with turning off Parental Control

    For research, I turned on Parental Controls. Since I don't have kids, I turned them off again.
    However, I still get blocked on some web pages, regardless of browser.
    I already killed the parental control daemon.
    How can I remove the limitations of the parental controls completely?

    Update:
    I found that it only affects a handful of URLs I tried in Safari and Firefox with the controls turned on and immediately after turning off again; Opera seems to not have any restrictions (I never tried Opera during all of this).
    Where is the block saved? What do I have to delete to remove the block? For now, I can access everything in Opera, but I like Firefox more.

  • Help!!!!!!!! Just did update on computer mac book, then went to restart and will come on but with turn off and restart over and over and over

    just did update to my mac book, then clicked ok to restart, but the computer came on then will turn off again then come back on and turn off over and over again
    HELP PLease!

    Turn the computer off by holding down the power button, then get your original DVD that came with the Macbook insert it in the DVD drive as soon as you can and then hold down the "C" key while the computer restarts and then run disk utility on your hard drive, also repair your permissions. 

  • Turning off logging for failed sync messages too

    HI,
    I was looking if we can turn off the looging of sync messages even if the message has failed
    if someone knows how to do that please let me knwo.
    Regards
    Nikhil

    Hi, Nikhil,
    By default the logging / saving up of Synch messages in the Database of XI is turned off. This is done to save memory space. But, if needed they can be truned on and the parameter LOGGING_SYNC is used for that.
    Likewise Trace_Level is used to set the trace level of your messages in MONI. If tace_level is 3 all steps are logged in MONI and this fills up the DB drastically. it should be used only for debugging purposes to understand the error / issue better.
    Trace_LEVEL should be set to 1 on a production system to make sure only limited logging of messages / steps happens in MONI.
    /people/michal.krawczyk2/blog/2005/05/10/xi-i-cannot-see-some-of-my-messages-in-the-sxmbmoni
    if found worth pls do the req
    Thanx
    Sampath

  • P6 R8.2 Email Status Update - how to  turn off logging?

    I have just got the email status update application running on our demo environment and have set it to poll for updates every 30 seconds so that we can have the system respond without waiting a long time. At the moment this means that it is generating about 10 lines of output into the log file every 30 seconds.
    I just want to have this running the whole time and would like to turn off the logging now I have it working - has anyone managed to do this? I am assuming that the app is using log4j wrapped in Apache commons logging but it looks as if the log settings are defined in the code - I have tried creating a log properties file in the lib folder (ie the classpath) containing a rootLogger=OFF statement but it just seems to be ignored.
    All suggestions welcome!

    It says above 2 relevant and 1 correct answere available .............
    I'm new here so could anyone direct me to these answeres?

  • Insert Statement - Turning off logging

    We have processes that loads data from a linked server via an insert statement.   There is really no need to log the data loads. Is there away to turn off the logging via T-SQL?
    TIA,
    Todd

    Change the database recovery model to Bulk Logged. 
    http://msdn.microsoft.com/en-us/library/ms189275(v=sql.105).aspx
    Bulk logged
    Requires log backups.
    An adjunct of the full recovery model that permits high-performance bulk copy operations.
    Reduces log space usage by using minimal logging for most bulk operations. For more information, see Operations
    That Can Be Minimally Logged.
    If the log is damaged or bulk-logged operations occurred since the most recent log backup, changes since that last backup must be redone.
    Otherwise, no work is lost.
    Can recover to the end of any backup. Point-in-time recovery is not supported.
    Best Wishes, Arbi; Please vote if you find this posting was helpful or Mark it as answered.

Maybe you are looking for

  • Reinstalled Windows/iTunes, Lost most iTunes Apps, etc.

    I just upgraded a computer from Windows XP to Windows 7 and thus, did a clean install. I then reinstalled my iTunes and re-set up my iPhone 3GS sync. All is well except that most of my apps disappeared. Not all, mind you. Several apps that i "purchas

  • Report for field BSART (table MEPO_TOPLINE)?

    Dear Gurus, how can I run a report on the following field? Field name: BSART Table name: MEPO_TOPLINE Thanks a lot

  • Did you see the InDesign CS6 Sneak Peek ?

    Okay, it's not certain that every shown feature will make it into CS6, but isn't it a lovely future ? http://tv.adobe.com/watch/max-2011-sneak-peeks/max-2011-sneak-peek-indesign-liquid-layout/ This stuff will change the landscape of desktop, web and

  • Error executing J2EE server

    When I try to run the J2EE server, I get an error saying "ERROR executing J2EE server" with the following system.err file: Does anyone know what I need to do ? Thanks. Logging for J2EE Server Version: 1.3.1-b17 started at: Sat Nov 01 11:12:21 EST 200

  • New to ColdFusion - Question regarding best practice

    Hello there. I have been programming in Java/C#/PHP for the past two years or so, and as of late have really taken a liking to ColdFusion. The question that I have is around the actual seperation of code and if there are any best practices that are p