LoggingMXBean - set logger output handler level ?

Hi,
As I understand, log output can be controlled by manipulating/setting the logger level and also the logger output handler level.
The former can be set via the LoggingMXBean's setLoggerLevel() operation where you specify the logger name and a level.
However, I don't see a way of setting the logger output handler level anywhere. Is this possible via any platform MXBean ?
My goal is to be able to change the logging output level of a running application - and I can't do it just by setting the logger level via setLoggerLevel(). In some cases, the logger output handler level also needs to be changed and as far as I know, the only way of doing this is via a logging config file specified at startup.
Apologies if I misunderstood the way the LoggingMXBean or logging in general works.
regards,
-isa

Hi,
The easiest way would be to pass a logging.property file on the command line, in
which you could configure a console handler.
Another possibility,if your process is local, could be to use the small example I wrote.
I have played a bit with dynamic configuration of logging traces - see here:
[http://blogs.sun.com/jmxetc/entry/tracing_jmx_what_s_going|http://blogs.sun.com/jmxetc/entry/tracing_jmx_what_s_going]
and there:
[http://blogs.sun.com/jmxetc/entry/more_on_troubleshooting_with_jmx|http://blogs.sun.com/jmxetc/entry/more_on_troubleshooting_with_jmx]
Hope this helps,
-- daniel
[http://blogs.sun.com/jmxetc|http://blogs.sun.com/jmxetc]

Similar Messages

  • Setting audio output levels automatically at login (even with command-line)

    When I log in, the audio level seems to be at the level set by the last user. Is there a way to get this to automatically set to my preferred level when I log in?
    A related question: Is there a command-line method of setting the audio level?
    Thanks in advance,
    Paul
    Power Mac G5 Quad   Mac OS X (10.4.8)   2GB ECC Memory

    u could use scripting...
    sudo osascript -e "set Volume 20"
    using that at the command line will change the volume level to 20.
    you could put that in a script or something and have it launch at login.
    Beavis2084

  • Changing OSX default volume setting to a higher level in sound preferences

    When I change the default volume setting to a higher level in sound preferences within OSX, it is back at the lower level at the next listening session the following time I use iTunes on my Mac Mini. Within System Preferences there is a section that lets you "choose a device for sound output" but the only choice I have is "line-out" and under the "port" heading there is only "built-in output"--no other choices are shown. I have external speakers attached which I like to use for listening to music as I work. What is the problem? Why won't the higher volume I set remain? Also, shouldn't more than one choice be shown for sound output?

    This sounds like the problem that I'm experiencing and <a href-"http://discussions.apple.com/message.jspa?messageID=2694517#2694517">aske d about a couple of days ago. The sound level resets to 50% after shutdown.
    I tried setting the levels in Audio MIDI Set Up as suggested above, but that hasn't changed anything.
    In answer to B_web, I am running my external speakers through the headphone jack.
    So, any other suggestions?

  • Setting NI5641R ADC input level

    Hi,
    I am using a NI5641R board and I am programming it using the LabVIEW FPGA Module.
    How can I set the maximum input level of the ADCs?
    Concerning the DACs, there is a VI to set the maximum output level in the library that comes with the board.
    Isn't there anything equivalent for the ADCs?
    Thank you

    Probably, I have found the solution.
    I post it for those who are interested. Of course, comments are welcome.
    IQ rate at the output of the ADC (downconversion):
    - use "ni5640R ADC Configure NCO.vi" VI to configure the sampling frequency (e.g. sample frequency= 100 MHz);
    - use "ni5640R ADC Configure DDC.vi" VI to configure the decimation (e.g. decimation=4);
    - than, the resulting IQ rate is: sampling frequency/decimation (e.g. 100/4=25).
    IQ rate at the input of the DAC (upconversion):
    - use "ni5640R DAC Configure for Quadrature Mode.vi" VI to configure the CIC Interpolation Factor (remember that there is an addictional fixed interpolation factor of 4);
    - than, the resulting IQ rate is:: 200M/(4*CIC Interpolation Factor).

  • My daq card PCI6025e' digital ports PA,PB,PC are in high state and cannot be changed even in MAX 2.1 testing panel and continuously output 5 volts even set for output.

    my digital ports PA,PB,PC are in high state and cannot be set low even if it is set for outputs.
    Thanks

    The MAX utility is the closest to the driver level and will eliminate software configuration as a possible issue. Please disconnect anything that you have connected to the DIO lines.
    Use the MAX test panel for your DIO lines, configure them as outputs, and set them to a low state. Use a multimeter (DMM) to observe the line state. If it is still high then you may have a problem with your hardware. If this is the case, I advise calling National Instruments support and investigate a possible RMA (repair).
    Best Regards,
    Justin Britten
    Applications Engineer
    National Instruments

  • Any automation for output sound level conflict?

    I just upgraded my home computer to a shiny new(er) G5 iMac, running 10.5.5. I don't know which of those are the necessary conditions for a change in output sound level behavior that I'm trying to tame. I have generally kept my cordless headphones permanently plugged in, rendering the old machine (G3 iMac, 10.4.11) silent to the outer (quiet) world of my house, including when it does a scheduled startup in the morning with some people still asleep. This worked well until the new machine arrived. Now the machine is still silent (outside of the headphones) all the time except when it powers up -- the startup chord now plays through the speakers regardless of a plug in the output jack. The problem comes with the output sound level. For headphones, the overall sound level needs to be at maximum. But the overall sound level seems to be the only volume control on the startup tones, and it is then at wherever it was set when the machine was last shut down. So if I forget to run the sound level down to 1 or zero before shutting down, the startup blasts everyone out of bed! So: I now have a sticky note on the iMac reminding me to turn down the sound at shutdown, which will usually work. My question: is there a more elegant way? Is there some way to automate the turning down at logout time, say? I'm inexperienced at scripting, but happy to learn. Any and all suggestions appreciated!

    There were no responses to my problem, so I will post a resolution. I dug a little, and found there are several add-ons out there for this problem.
    One is http://www5e.biglobe.ne.jp/~arcana/software.en.html, which has the elegant interface of an added system preference pane. However, it is in a beta release, and temporary administrator authentication does not work. As far as I can tell, in order to get it to work, you have to login and run with administrator privileges, never a good idea. Maybe someday this app will work.
    But I hit paydirt with an app called Psst, http://www.satsumac.com/Psst.php. This does just what I wanted. The interface isn't as elegant; you just run the app and make your settings, then quit. It leaves a daemon process running at every startup that does just what you want: it saves the global audio volume and resets the volume to the Psst setting at shutdown. Then at the following startup, the startup chime sounds at whatever the Psst setting was, then the audio volume is set back to the saved value. You can just forget it's there, having once set startup volume level.
    Too bad that Apple didn't build this in the latest Mac OS, but Psst seems to fill the gap.

  • How to set at the server level to log transport request in SAP ME

    Hi:
    when I do configuration in SAP ME, can I set at the system level to log for transport request ?
    so I can  use transport request for other client or server.

    Hi!
    There is no "transport request" in SAP ME, however, there is Configuration Data Transfer Export/Import activity which can export the data to ZIP file at the source site and then import that file at the destination site.
    CDT activity can utilize CTS+ as a transport channel but I would suggest ZIP file instead because the file can be edited manually in case of any issue or if you want to remove some data.
    For details, please consult this How-To Guide.
    Regards,
    Sergiy

  • ADF - Component File Download Listener - Setting the output filename

    Studio Edition Version 11.1.1.2.0
    Hi, I would like to learn how to set the output filename as current data + filename. I have a button with the component File Download Listener that has theses parameters
    Content/Type: application/pdf
    Filename: test.pdf
    Method: fullReportPDF()
    I needed that when the user clicks the button, that he return the current date + filename statically defined.
    How i may to make this?

    In a bean you implement a method which return the filen ame date and static part concatenated and set it as EL into the af:fileDownloadActionListener
    // on the page
    <af:fileDownloadActionListener contentType="application/pdf"
                                             filename="#{XYZBean.filename}"
                                             method="#{XYZBean.fullReportPDF}"/>
    // in the bean
        public String getFilename()
            String fn = (new Date()).toString() + "static_part.xyz";
            return fn;
        public void fullReportPDF(FacesContext facesContext, OutputStream outputStream) { ... }where XYZBean is the bean where you have implmented the method fullReportPDF.
    Timo

  • Sun ONE Studio 4 aka Forte: How to set the output path for classes ?

    Help !
    Beginner's question:
    Sun ONE Studio 4 aka Forte:
    How to set the output path for classes ?
    As default, the class files are created in the same directory as the
    sources.
    In opposite, both JBuilder and Together support that there is a tree
    with the sources and another tree with the classes.
    The first answer I got was "not possible with Forte, but just if you write your own "ANT Build script" !
    a) Please point me to a ready-to-use ANT script for this purpose, if such is available
    b) Is using ANT instead of the MAKE as comfortable ? Besides the separation of sourcecode and classes, I would like to keep everything else to be the same, i.e. I don�t want to edit the ANT file if I enlarge the project by directories or files.
    Tia
    Sincerely
    Rolf

    You can set S1S's options to place newly created .class files in a specific location.
    Identify the compiler that is being used - Open the S1S's Tools/Options window, expand Editing and select Java Sources. Note the Default Compiler value. (If it's one if the Ant options, you use Ant to specify this option, not S1S.)
    Open the S1S's Tools/Options window, expand Building/Compiler Types and select the appropriate compiler.
    The Properties tab of the compiler has the property Target, which sets the filesystem where the compiler output is directed. If you choose <not set>, the .class files are written to their source directory.
    When you set the Target, your change affects all classes that use this compiler.
    Very few options can't be set in S1S; the challenge is finding out where they're set!

  • ADF 11g: Possible to programatically set the pivot handle label ?

    Hi all,
    I am using JDev/ADF 11.1.1.3. I have a pivot table and I would like to dynamically set the pivot handle labels. The value needed for the label is another column in my view object.
    I tried 3 different approaches to no avail and I am running out of ideas:
    1) I tried to override the createViewRowAttrHints method as per Steve's article (http://blogs.oracle.com/smuenchadf/examples/#137). While I could see that it did work in the BC tester, it did not get picked up by the pivot table
    2) I tried to set the value in the page definition but the itemLabel tag seems to only accept a literal
    3) Lastly, I tried the setLayerMetadata method in the underlying DataDirector, still no dice.
    If anyone could point me in the right direction, it would be greatly appreciated.
    Thanks,
    Michel

    Hi Dharmathej,
    Wht Jdev version u using....... since in JDeveloper 11.1.1.4 ADF provides to hide the status bar of the panelCollection
    refer here http://ramadf.blogspot.com/2011/01/jdeveloper-11114-af-panelcollection.html
    Regards,
    Suganth.G

  • How to set report output to session variable

    Hi,
    Is there any way to set report output to session variable . If my report returns 1 row and 1 column.
    I have a dashboard prompt where i am selecting Name , but i want to find out the ID of that name .
    that ID i want to pass to a column Fx , to achieve this i created a intermediate report and i got the ID. Now my problem is how do i set this ID in session variable .
    Please help if anyone knows...

    Did you read this:
    how to set session / presentation variable in repository variable
    Dashboard prompt on Month Name but report filter on month ID:
    Re: Dashboard prompt on Month Name but report filter on month ID needed
    If you have dashboard prompt (name) then you may have only one report that is filtered by name but show id or not show id but use id in the function. Or two reports like in the solution in the second link above and the second report has id in the function and filter by id from the first report. You don't need to set this ID in session variable for this example.
    Please close your previous threads if they are answered.
    Regards
    Goran
    http://108obiee.blogspot.com

  • Want to set a default zoom level for safari?  Here's how you do it.

    If you like to set a default zoom level for safari so you don't have to hit Ctrl+ (or Ctrl-) every time you start Safari and open a new tab, here's how you can do that. This should work on Safari for mac, too:
    1) create a file named defaultzoom.css (or any name you like, just make sure it has a css extension.)
    2) copy and paste in the following:
    body {
    zoom: 130%;
    change 130 to whatever number suits you. >100 means zoom in, <100 means zoom out. Don't forget the % percent sign!
    3) in safari, go to Preferences > Advanced. Under style sheet, select Other... and point to the file you created.
    4) you may need to restart safari for the change to take effect.
    Voila. Hope that helps someone.

    Yes you are right!
    This CSS zooming is a crude hack. I think it basically treats a web page like a pdf document where you just enlarges everything.
    When you zoom manually, safari does a smarter sort of zoom where it enlarges but tries to keep widths of the elements the same size, reflowing text where needed and scrolling only when necessary.
    If the web page has a fixed size that is smaller than your browser window, like this forum, css zoom works ok. But with a page like gmail, which has no width constraint, you get into trouble.
    Hmm, wait, I just checked out wiki, which also uses up all available screen real estate, but does NOT have this problem.
    Notice in gmail, even if you zoom way out below what should be 100%, the login is still off the screen. The font gets real small but the width of the page stays the same. The css zoom basically "sticks" and isn't completely reversible.
    Bottom line: you have to decide which is more annoying: having to hit Ctrl+ for every tab you open, or running into some problematic pages.
    On Windows, I use autohotkey (a kdb and mouse macro scripting program) to switch off the CSS on the fly when I need to. I think Mac has similar capability built in, right? If I were really clever, I guess I could program autohotkey to send a few ctrl+ whenever it detects a new window or tab in safari, but I'm not there yet.
    Bottom bottom line: Apple needs to add this feature. It's a pretty basic accessibility feature. Doesn't Apple have like an accessibility guru/advocate?

  • [SOLVED] Braid AUR "ERROR: There is no agent set up to handle file..."

    SOLUTION AT BOTTOM OF THREAD!
    I have installed numerous AUR packages in the past.  However, this is the first that I am unable to figure out.
    I assume I am supposed to extract the tar, copy the Braid package files (from my owned copy of Braid) to the same directory, run makepkg, then install via pacman.  The problem I am having is when I go to use makepkg I get the following error:
    # makepkg -s
    ==> Making package: braid 1.0.2-1 (DATE TIME)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving Sources...
    ==> ERROR: There is no agent set up to handle file URLs. Check /etc/makepkg.conf.
    Aborting...
    I am not finding any solutions on Google.  Please help!
    Edit - Edited to show thread solved.
    Last edited by qKUqm3wtY4 (2013-01-03 17:00:49)

    SOLUTION! Provided by tdy
    braid-linux-build2.run.bin from Humble Indie Bundle 2 is required!
    You must edit the PKGBUILD file.
    source=("$_gamepkg"::"file://$_gamepkg"
    Change the source line to this:
    source=($_gamepkg
    Don't extract the braid file.  Just place it in the same directory as the PKGBUILD file.
    Run makepkg
    # makepkg -s
    Then run pacman
    pacman -U [filename].pkg.tar
    YOU ARE DONE!
    UPDATE!!!
    AFTER THIS THREAD WAS SOLVED, THE AUR PACKAGE WAS UPDATED TO SOLVE THIS ERROR.  JUST MAKE SURE YOU HAVE THE braid-linux-build2.run.bin FILE IN THE SAME DIRECTORY, AND THE INSTALL WILL WORK.
    Last edited by qKUqm3wtY4 (2013-01-06 09:18:11)

  • Output sound level from gramophone and from computer should be the same

    Dear friends,
    Why the output sound level isn't equal if we listen the LP directly from the gramophone (AUX1) or from the computer during the recording the track on the computer?
    We are using The E-MU 0404 USB 2.0 Audio/MIDI Interface:
    http://ixbtlabs.com/articles2/proaudio/emu-0404-usb.html
    http://www.emu.com/products/product.asp?product=10447&nav=features
    and we have connected E-MU with the (gramohone) speakers through the headphone output on the E-MU and turn the headphone level to the maximum, but the sound level is still lower from the same speakers.
    If we compare the track after the recording with the LP on the gramphone is the level of the sound the same/equal.
    So we need to have all three sound levels equal:
    -from the LP form the gramophone
    -from the computer during the recording
    -from our track on the hard disk after the recording
    Thank you for your answer.

    function(){return A.apply(null,[this].concat($A(arguments)))}
    Connecting loudspeakers to the headphone output on the E-mu sounds like completely the wrong thing to do altogether - you should
    only connect headphones to a headphone output, and nothing else at all.
    We will buy the cable as you mentioned and connect it in the line level (S/PDIF).
    function(){return A.apply(null,[this].concat($A(arguments)))}
    Almost certainly you will need to adjust the monitoring levels in Patchmix to get this the way you want it
    Then we will try to adjust the monitoring levels in Patch (I will report if and how did we manage it).
    Our equiptment is:
    ·       turntable Stabi Kuzma audio komponents ( http://www.kuzma.si/AmplioCMS2/public/EnterPublic.cms2?langId=60&request_locale=en_US )
    ·        Rotel Phono equalizer RQ-970BX,
    ·        Rotel Stereo integrated amplifaier RA-9858X
    ·       speakers JMlab Focal Daline 3.1 (nom. impendance 8 Ω, max. power 75 W)

  • How to Set the Transaction Isolation Level in WebLogic?

    Is there a way to set the transaction isolation level in WebLogic 9.2 or WebLogic 10?
    For an example say, we have an application which is supported for several database platforms. Without setting the transaction isolation level in DBMS level, is there a way to specify this in WebLogic to make it common for all the DBMS type?
    And I found a way to change the transaction isolation level in WebSphere application server using a property called webSphereDefaultIsolationLevel.
    [url http://www-1.ibm.com/support/docview.wss?rs=180&uid=swg21224492]http://www-1.ibm.com/support/docview.wss?rs=180&uid=swg21224492
    Is there a way to do the same thing in WebLogic application server 9.2 or 10?

    Anuradha W wrote:
    That means, currently the only way tospecify the transaction level is through
    weblogic-ejb-jar.xml deployment descriptor?
    for WLS-generated code, yes.Somewhat related to this question, we have written a standalone testcase to reproduce this issue we have been having. Basically, the issue is that even though we configure the isolation level to a non-default one in the deployment descriptor, the connections returned by the datasource seem to be having the default (which is Read Committed). The DBMS is DB2.
    weblogic-ejb-jar.xml has the following set:
    <isolation-level>TransactionRepeatableRead</isolation-level>
    And we printed the isolation level of the connection returned from a method in the EJB, but the isolation level is still the default. I can share the code to reproduce the problem if you want to take a look at it. Please let me know how I can get that across to you.
    Thanks,
    AnuradhaIf you are using our JDBC driver for DB2, or can switch to it,
    just for a test, there is some debug I'd like from you.
    Joe

Maybe you are looking for

  • How can I get my phone out of restore repair without restoring it?

    I hooked my phone to my computer to download songs. I didn't download the newest version of iTunes on my computer. Then I decided to update my phone to the newest IOS, thinking I would fix some bugs on my phone. My phone started updating and closed u

  • How to add additionnal information in EP Logon UI Header ?

    Hi all, I would add informations in the message "Welcome FirstName LastName" onto the EP Logon UI header. I could find the variable for the "Welcome" text (in logonLabels_LG.properties file), so I do not know how to add a variable (for example the Pe

  • Cache issue in database query while executing VO

    Hi, I have a table where I am creating new rows using AddNewRow button and on clicking save button, row gets stored in database. I created a VO which will fetch rows from table based on binding variables. When I execute the same query using sql works

  • Top of words cut off in MSword docs.

    In word docs, the top of the words are cut off. This does not happen in Quickbooks invoices.  I have cleaned & aligned cartridges, cleaned paper tray. Any suggestions

  • Rename a table column

    Can we rename a column in the database table? If, yes, then how?