Can you set log level

Does weblogic supply any way of setting the level of log messages that
actually get written out to the log. So that if can turn off all my debug
messages (e.g. LogServicesDef log, log.info(), log.debug())
in production. I'm currently doing this with application level code

Hi,
Yes, weblogic does supply a way of setting the level of log messages that actually
get written out to the log.
This can be changed at Admin Console> idbmsDem
o> Servers> myserver> Logging> General> Stdout severity threshold>
Yuan Dai
BEA Adapter Factory Group
InfoGain
408-355-6098
"maurice lowenthal" <[email protected]> wrote:>Does weblogic supply any way
of setting the level of log messages that
actually get written out to the log. So that if can turn off all my debug
messages (e.g. LogServicesDef log, log.info(), log.debug())
in production. I'm currently doing this with application level code

Similar Messages

  • Can you set isolation levels of message-driven bean transactions?

    The problem: I have 3 different message-driven beans which each get a different type of message, except for a field that is common to all. That field is used as the primary key of an entity object. The message-driven beans configured to use a container managed transaction. Each message-driven bean, in processing the message, first does a lookup by primary key to see if the object associated with the key exists, and if it does not, it requests the entity's home object to create it. After that, they do further processing. The problem is that sometimes all the beans simultaneously get a message, resulting in each bean checking for the entity object at about the same time, and if they fail to find it (because none of them has created it yet), each creates an object, all with the same primary key. This is not caught until the beans start to complete their onMessage method, which I believe results in the container committing the transaction. One of the transactions will be committed successfully, while the other two will fail, get rolled back, and then be retried with the same message. The second time through, the other beans will find the entity object (since it has been created and committed) and they will complete correctly. In the end, they right thing occurs, except that there is a troubling exception or 2 in the log telling about the constraint violation (with the primary key) and the rollback. If it was just me, that would be fine, but our customer does not like to see exceptions in the log; that indicates to him that something is wrong.
    So, I am looking for someway to make sure that the actions of the message-driven beans are serialized. One suggestion from a colleague was to set the isolation level of the transactions being used by the container in processing the message-driven beans' onMessage method. However, the documentation does not mention any way to do this for a message-driven bean. Suggestions?
    Is the use of a UserTransaction a better way to do this? If I acquire a UserTransaction within the onMessage method of a message-driven bean, can I set its isolation level? How would this work? When I get a UserTransaction, does each client get a different transaction, or do they all get the same one?

    (1) The WebLogic JMS "unit-of-order" feature is a heavily adopted feature that was specifically designed to handle similar use cases - see the JMS developer guide for extensive documentation. In your use case, if "key" is used to define UOO, then there's no limit on the number of keys that can be processed concurrently, but messages for any particular key will be processed single-threaded in the order in which they were first submitted.
    Note that if you're using distributed destinations, the UOO feature is still fully supported - but the developer and/or administrator needs to decide whether to configure the destination to use "hash" or "path service" based routing (the JMS UOO edoc outlines the trade-offs).
    (2) Another alternative is to use a single MDB with max-beans-free-pool that processes all three types (as the other poster suggested). I think this assumes all MDBs run on the same JVM.
    (3) Another alternative is to use multiple queues, with a single MDB on each Q. Where some sort of hash algorithm is used to determine which Q is for the key. This approach is a "hand-coded" variant of the approach in (1) with "hash" based routing enabled...
    (4) If all MDBs actually do run in the same JVM, a third alternative is to use code the application to use a common lock to protect each key, eg, something like:
    // assume MyLock is simply a class with a "reference counter"
    // assume some global "staticHM" hash map that is all MDBs can access
    onMessage() {
    MyLock lock = null;
    key= msg.getKey();
    synchronized(staticHM) {
    lock = staticHM.get();
    if (lock = null) {
    lock = new lock();
    staticHM.put(key, new lock());
    lock.incRefCount();
    try {
    synchronized(lock) {
    // only one onMessage will be able to lock a particular key at a time
    do your work;
    } finally {
    synchronized(staticHT) {
    if (lock.defRefCount() == 0) staticHM.remove(lock);
    if (lock = null) staticHM.put(key);
    If multiple threads get a message with the same key, then only one thread at a time will work on the key.
    Hope this helps,
    Tom

  • Can you set the level of the logfile

    Hello,
    Is there a way to set the level off information put in the logfile? How can
    I change this.
    Kind Regards,

    That only sets the level for stdout, not for the logfile.
    regards,
    -Ade
    "Naggi Rao" <[email protected]> wrote in message
    news:[email protected]..
    Console-->Servers-->Myserver--Logging-->Stdout severity threshold
    "Ruud Janssen" <[email protected]> wrote in message
    news:[email protected]..
    Hello,
    Is there a way to set the level off information put in the logfile? Howcan
    I change this.
    Kind Regards,

  • Can you set up apple tv using 2 different itunes accounts from 2 different macs in same household?

    can you set up apple tv using 2 different itunes accounts from 2 different macs in same household?

    No, you can only connect to one Home Sharing account at a time. If you want to see the content of the other Mac's library you will have to turn off Home Sharing on the Apple TV and log back in with the other iTunes account.

  • Can you set in and out in FCP X

    can you set in and out in FCP X

    Yes, but its usefulness depends on what you are trying to do.
    In and Out Points are no longer options on ingesting clips (formerly "Logging and Capturing") into FCP.
    You can use I/O Points to select clips in the clip browser (good for attaching keywords & metadata...a nice addition to the new FCPX).  I honestly haven't used I/O points in the Timeline to understand it's complete functionality.

  • HT1373 how can you set up another iTunes account but keep all your purchases and music from a previous account

    how can you set up another iTunes account but keep all your purchases and music from a previous account

    An iTunes account is something you log into online to buy music.
    An iTunes library is a collection of media and other items (including apps) on your computer.  This is what you see when you open iTunes.
    So, do you mean account or library?  You can set up a new iTunes account but all your purchases made in that account will remain in the old account and cannot be moved.  You can set up a new library by starting iTunes and immediately hold down the option key.

  • Can you set up multiple user accounts on one laptop?

    can you set up multiple user accounts on one laptop?

    Of course.
    And instructions can depend on which OS X is installed.
    For v10.7 Lion > OS X Lion: Create a new user account
    For v10.8 Mountain Lion > OS X Mountain Lion: Create a new user account
    When you post for help, please state which OS X is installed.
    If you aren't sure, click About this Mac from your Apple menu 

  • How can you set up more than one device on iTunes. I have an iPad, iPod, itouch and iPhone. I don't want the same on all devices.

    How can you set up more than one device on iTunes? I have an iPad, iPod, itouch and iPhone. I don't want the same on all devices. I have all my music/videos on iTunes on my mac book pro. Can you set up separate folders for each device and drop in what ever music/videos from the main iTunes library?

    In itunes it is called syncing and you can choose exactly what content to sync to all devices and it can be different for all of them
    How to sync

  • Can you set up multiple Facebook users on 1 IPad 4?

    Can you set up multiple Facebook users(2) on one IPad 4?

    I think maybe on different users on one computer - but not on the same one.

  • Can you set up 2 iTunes accounts on one computer?

    Can you set up 2 iTunes accounts on one computer?

    I had two accounts on one computer until recently. You need to use two user accounts on the computer. Note, I say I did it until recently, therefore I'm not able to confirm this still works, but assume it does.

  • Can you see ink levels from Eprint center for the OfficeJet 7500A/E910

    Can You monitor ink levels from eprint center for the OfficeJet 7500A/E910?
    This question was solved.
    View Solution.

    Hello Raimonds,
    To answer your question, you are not able to check your ink levels from ePrint Center. The only thing that you can do in ePrint Center is monitor the status of your recent print jobs that you send via ePrint and monitor the status of connection of your printer to the ePrint Servers.
    If I have SOLVED your issue, please feel free to provide KUDOS and make sure you mark this thread as SOLUTION PROVIDED!
    Although I work for HP, my posts and replies are my own opinion and not those of HP.

  • Can you set a second "Open with:" application for a file?

    Hi all,
    I was wondering if something like this exists for OS X Lion or greater: you can set a default application to open a type of file, say Safari for all .html files, but can you set a second default application for a file?
    I usually open files using command + o or command + down arrow from the Finder and I've often thought how good it would be to hit an alternate keyboard shortcut to open the selected file in a secondary default application.
    For example, if I'm making a web page and have the .html selected in the finder I can hit command + o (or command + down arrow) to open it in Safari and if the file isn't open in my editor and is selected in the Finder I can hit, say command + option + o (or command + option + down arrow) to open the .html file in my editor.
    Does anyone know if this can be achieved in OS X Lion or greater?
    Any advice is greatly appreciated.
    Thanks.

    Hi all,
    If anyone's interested in a partial solution, I've rigged up the following.
    I ended up using an Automator action coupled with Spark to capture a keyboard key combination. Spark: http://www.shadowlab.org/Software/spark
    I've used Spark before with good results, and although it's from 2008 it still works on Lion.
    I created an Automator action that does two things:
    gets the selected Finder items
    opens finder items in the text editor I'm using.
    I then saved the workflow as an application so that Spark could run it.
    I've set up a keyboard shortcut that Spark picks up and calls my Automator workflow. It all seems to work nicely.
    So, I've created a specific "open selected file with <text editor>" keyboard shortcut that should do for the time being.

  • Can you set a web page as a 'home page' on the i phone safari as you would?

    Can you set a home page or will the safari button always take you to the last web site you were on?

    You cannot set a Home Page in Safari but if you save your favorite bookmark to the home screen, you can use that to open the browser on iPhone.
    To do this:
    Open Safari and open the page you want for the "Home Page".
    Tap the "+" at the bottom of the screen and select "Save to Home Screen"
    You can then name it whatever you wish and tap Save.
    This will create an icon on the home screen that you can tap on to always open Safari to that page.

  • Can you set different colours for invitees in calendar?

    In calendar on the iphone/ipad can you set any events that you accept from invitees to a different colour so that you can instantly distinguish them from your own events?
    Cheers

    You could choose None in Preferences > General > New Mail Sound and set up a rule for each account in Preferences > Rules as follows:
    If [any/all] of the following conditions are met:
    [Account] [AccountName]
    Perform the following actions:
    [Play Sound] [Sound]
    Problem is, that would cause the sound to be played for junk mail as well — probably not what you want.

  • HT1677 Where can you set default in Safari to view as web page instead of Mobile Version?

    Where can you set the default setting in Safari to open page as web page instead of Mobile Version on iPad running iOS6.01?

    And, to make it even more fun, sometimes a website changes how it deals with Safari Mobile. A website that treated it like a desktop browser suddenly starts treating it like a cell phone. Just to mess with you. Or push an app.
    Best of luck.

Maybe you are looking for