Question regarding use of Log and LogFactory in Servlets

Hi,
I saw the following code in an application and I would like to know where the log information would be stored. It appears that the log information is not displayed on the screen and was not able to find out where the log files are. The application was created using NetBeans and was using Tomcat. Thanks in advance.
import org.apache.common.logging.*;
public class Test extends HttpServlet
private static final Log log = LogFactory.getLog(Test.class);
String theHost;
String theSource;
public void init (ServletConfig config) throws ServletException
super.init(config);
log.info(�debug Enabled: �+log.isDebugEnabled());
ServletContext context =config.getServletContext();
this.thisHost=�/Test/�+config.getServletName();
etc. etc.
log.info(�thisHost:�+this.thisHost);
log.debug(�Source:� +theSource());
etc, etc.
}

It depends on what logging system you have set up.
Commons.logging is an abstraction layer above logging components. It allows your code to use a variety of logging systems. However those logging systems have to be set up and configured by you. This can be via system properties, properties files, XML config files (depends on the logging system and how you use it).
So you need to figure out which logging system is being used and then configue that system to write the logs
matfud

Similar Messages

  • Beginner question regarding 32-bit mixing and mixdown workflow

    Hello
    I have a beginner question regarding 32-bit mixing and mixdown.
    If I edit some 16Bit, 44.1kHz Stereo WAV Files and put them into multi-track view to do crossfades, how should I do the mixdown?
    Audition shows me in multi-track view, that it is doing 32-Bit mixing.
    Can I just mixdown to 16Bit, 44.1kHz Stereo without any dithering (as the files are 16Bit, 44.1kHz Stereo to begin with), or will I lose quality that way?
    I will be performing a normalization to 96% to the mixdown and then split to tracks in Audition, as in the end I want to to have an audio CD.
    I guess I could mixdown to 32Bit, then normalize and in the end save back to 16Bit, 44.1kHz Stereo WAV (with dithering, I suppose?), but I want to avoid any unnecessary converting steps.
    Greetings

    Any time you do any processing on a 16bit file in 16 bit only it will degrade the audio slightly due to rounding of the calculations. Working in 32 bit floating point (Audition's default) takes account of all bits generated due to processing.
    So it is always best to work in 32 bit, even if your originals were 16, all the way through until the last stage of saving the files for CD burning. Any losses due to conversion will be insignificant against those due to working 16 bit.

  • Questions regarding using the .monitor command to retur a animated image and we would like feedback to a designed webpage that is monitoring a 5kW windturbine:)

    I'm embedding a front panel image in an existing HTML dokument. I would like to use the command .monitor in the URL together with the refresh command so the VI automatic will reload every 20 secund. This actual work, but simultaneous I want to have the possibility to refresh manually so I don't have to wait 20 sec before new values is shown in the display. Is this possible to do?
    Another question: Since the real time display updates 1-2 times a secund the command .monitor is used to get a animated picture of the Real Time Display.
    There are several ways to add animation on to web pages. The techniques used h
    ere are the �server push� and �client pull�which makes the browser repeatedly reloads a changing inline image to provide crude animated sequences. This is not the most efficient way as this result�s in an image being re-transmitted for each frame of the animation. The command .monitor with the attribute refresh and lifespan in the URL trigger this �server push� and �client pull� techniques.
    I use this automatic refresh uploading of the display so that it each time shows different values, is this called crude animation?Then I'm wondering what I'm suppose to use the command lifespan to?I can't see the use of it in my display.....?
    link to the webpage so you can have a look at the display:
    http://134.7.139.176/.monitor?Real%20Time%20Performance.vi&refresh=20
    This is a project that I'm working together with another Norwegian friend. WE are very happy for feedback on our web page and displays go to: http://www.ece.curtin.edu.au/~peersena/ if you would like to view itThanks

    Annis,
    One of the other things to keep in mind is that the generation of an image does take some computing power so having the generation and the acquistion on the same machine is not always ideal. If you're using the machine that is publishing the front panel just to collect data it's not so much of an issue.
    If you really want to monitor in "Real-Time" using Remote Panels (requies LabVIEW 6.1) is your best option. This posting has more information on using Remote Panels and links to some live examples:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000C0660000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0&USEARCHCONTEXT_TIER_0=0&USEARCHCONTEXT_TIER_S=0&USEARCHCONTEXT_QUESTION_0=web+control&USEARCHCONTEXT_QUESTION_S=0
    Remote panels makes it possible to control the application remotely as well.
    With .monitor the only way I've been able to manually refresh is to "Shift+Refresh" on the browser.
    Regards,
    Kamran

  • Question Regarding Mesh with 3702 and non AC ap´s

    Hello! 
    quick question regarding MESH deployments with 2 different sorts of AP´s: AC and non-AC modells: If my 3702i is my root AP´s, and 3602i my MAP - will AC still work in 80Mhz, or will I have to switch to 40mhz (and thus crippling (???) AC performance?) 
    Not 100% sure on this... I *think* it should still work for the normal 802.11n connection, but I´m not sure if the 80mhz channel width (needed??) for AC, will cause the non-ac 3602i to be stranded? 
    Thanks alot for your insight! 

    Currently, my network DHCP server is a software based DHCP server. In reading over your post if I understood correctly it sounds like the managed switch would have its own hardware based DHCP server to assign IP addresses to those clients identified on the "external" VLAN. Did I understand that correctly or did misread something?
    DHCP server will be software based, even though you defined it on your switch, it is DHCP service running on its OS.
    I am configuring this setup for a small business application and will need to purchase a managed switch with 16 or 24 ports. Do you have any recommendations on a particular managed switch that will handle the VLAN configuration and include POE while keeping costs in mind.
    In this forum, most of us discussed about Cisco enterprise grade wireless. Here is 2960X series switch detail, if you are interested
    http://www.cisco.com/c/en/us/products/switches/catalyst-2960-x-series-switches/index.html
    You may need to check the pricing with your Cisco account manager or from a Cisco partner.
    HTH
    Rasika
    **** Pls rate all useful responses ****

  • Thanks for the reply to my question regarding sound in iMovie and sending me the online links.  however the online links are impossible to play as they upload too slowly with the result that the playing keeps stopping waiting for the content to catch up

    Thanks for your reply to my question regarding sound in iMovie.  However I cannot follow the links you sent as they upload too slowly and therefore the instructional movie keeps stopping waiting for the content toload.  Surely theremust be a solution for this??
    Thanks in advance
    lolly

    Please continue posting in your original thread.
    With the amount of traffic on these forums it is impossible to chase around finding this.

  • Can't select input output and name media when using MRC1 log and transfer

    I am using a MRC1 from the Sony Z5E to film my media. I downloaded the plugin which allows me to log and transfer through FCP 6.0.6. The only problem is that it does not allow me to input/output and name the pieces of each clip that I want. Hence I can only import the whole clip and am wasting time and space with media that I do not want or need. Is there an additional plugin or setting to pick on FCP to get this feature to work?
    Rich

    Hi xhk, I'm a Kubuntu's user and I've had the same problems. I've been days reading on the Internet about this issue and finally I solve it by following this post from a Spanish tutorial: http://bit.ly/4p3XFq. It worked for me!
    Basically it is:
    1. Get install the needed packages, i.e: sudo apt-get install ibus ibus-pinyin
    2. After installing them, introduce a little code into two files:
    2.1.--> type on your konsole: kate /home/$(whoami)/.bashrc
       a--> add to the bottom of the opened text:
    export GTK_IM_MODULE=ibus
    export XMODIFIERS=@im=ibus
    export QT_IM_MODULE=ibus
       b-->save the changes on the text.
    2.2.--> type again on your konsole: kate /home/$(whoami)/.profile
      b--> repeat 2.1.a. and 2.1.b
    3. Go to main menu - system settings - advance - "autoarranque" (I don't know how it is called in English, "restarting" maybe?) and then "add a programme". Type: ibus-daemon -d, press OK and then rebooth.
    It shall be working by then.
    Last edited by mxd (2013-07-06 01:42:27)

  • Question about using 10g/11g and APEX ...

    Hi,
    I just recently learned of Oracle's APEX and have a few questions about using it.
    Can I use APEX with express, standard, and enterprise editions of 10g and 11g?
    Are all of these free to use?

    You might want to read about APEX rather than jumping into questions that are reasonably well documented. Info at http://www.oracle.com/technology/products/database/application_express/index.html
    Your specific questions:
    1) Apex is a package that can be installed into any properly licensed database.
    2) The price for the production license of the database varies by edition.
    The price for Express Edition is $0 for use in production. Part of the cost for that edition is 'no Oracle Support based support, no patches, data volume limitation, etc.'

  • Question Regarding Inspire t 6200 and PCIE XFI Titanium Fatality Pro series.

    LQuestion Regarding Inspire t 6200 and PCIE XFI Titanium Fatality Pro series.0 Hello All,
    I need help on this.
    I have PCIE X-FI Titanium Fatality Pro Series. and I just bought 5. Speakers Inspire t 6200.
    However, I have some problems.
    . In Mass Effect or Other game Or dvd I cant make the center work. It means you can hear the music and background sound clearly but no Voice at all that ussualy come from center channel.
    2I Tested over audio controler from the disk. When I put 5. speaker configuration, the sound is coming from center and left channel for left channel and same thing for the other side. However, When the test is trying to test the center and rear speake, the sound are muffled.
    3. Is X FI only for Headset only or you can use Pc Speaker ? And how to configuration for Inspire t6200 with my sound card.
    Thank You

    AnyOne?

  • Question regarding using Lightroom Web Module and Zenfolio

    I use LR3 and like the galleries I can make in the Web Module.  If I use Zenfolio as a web hosting service, can I upload or export my photos from LR to Zenfolio and use the galleries I create in the Lightroom Web Module,,,or do I need to use the existing gallery templates in Zenfolio?  If that is the case, other than using Lightroom to upload photos, is it's Web Gallery Module superflous?
    Thanks,
    Matthew Kraus

    Matthew,
    If you are asking if you need to use LR's Web Module to export images to Zenfolio, then no you would not use the LR Web Module but rather use a plug-in to export directly to Zenfolio.  Or you can just export to your local HDD and use Zenfolio's upload module to grab the files from your local drive.
    Jeffery Friedl has a nice LR plug-in for SmugMug so I am sure his Zenfolio plug-in will work nicely as well:
    http://regex.info/blog/lightroom-goodies/zenfolio
    It's free, sort of, after the trial period, like 45-days as I recall, there is a limit on the number of files which can be uploaded.  When the trial expires if ya like it you just donate any amount and get to upload any number of files as Zenfolio allows in a session.
    Does that help answer your question?

  • A question regarding using a JDBC class to connect with cloud service database

    Hello,
    I am currently working on a small scale cloud service report where the company I chose is obviously Oracle. My question is regarding the cloud service in the following way. I was doing my report with the free trial until it just came to me that
    why not to do a small one class program with my netBeans or Eclipse that uses JDBC but I am not sure what username, password and the url to use in the connection to retrieve, manipulate and store values. Can somebody help me please if this is possible or not?
    edit: Anyone please? I have a deadline in 15.8. and could create something great until then if I get the anwser in few days

    To correct my question, I already have the oracle account and I created the cloud service trial account with database and java section.

  • A question regarding using Myriad Pro as a web font...

    Okay so this is a pretty straight forward question (I think)...
    I've been using sIFR to replace many of the typical web fonts on the sites I build since much like everyone else I'm sick of being restricted to using only certain fonts.
    Myriad Pro is one of the many fonts I really like for building websites. I discovered recently by accident that Myriad Pro (and a few other variants in the Myriad Pro family) are part of Adobe Reader. This means that ANYONE who downloads Adobe Reader has Myriad Pro installed on their system and probably doesn't even realize it.
    Having discovered this it has come to my attention that there is a decent possibility I could use CSS and have Myriad Pro as a web font without even having to render it using sIFR. The problem is that anyone who doesn't have Adobe Reader installed wouldn't see the nice Myriad font.
    So my question is what do all of you guys think about this? Does anyone have any actual numbers in regards to how many people actually have Adobe Reader? If it was a higher percentage like 90% then I think this would be a safe solution.

    I don't know how many people use Adobe Reader, although I would think it's a fairly high proportion. Perhaps not as high as 90%, though. However, there's nothing stopping you from using Myriad Pro as the first choice in a font-family declaration. Browsers use the first available font. You could use something like this:
    body {
      font-family:"Myriad Pro", "Gill Sans", "Lucida Sans", Verdana, Geneva, sans-serif;

  • Regarding the inbuilt log and audit tables for APEX 4.1

    Hi,
    When we acces the Administrator login then we can view various logs like the sql commands that have been recently fired,user list for a workspace,access to each application.Where are these data stored and fetched.Also could we get the inbuilt audit and log table for APEX 4.1 ?
    Thanks and Regards

    >
    Please update your forum profile with a real handle instead of "935203".
    When we acces the Administrator login then we can view various logs like the sql commands that have been recently fired,user list for a workspace,access to each application.Where are these data stored and fetched.Also could we get the inbuilt audit and log table for APEX 4.1 ? This information is available through APEX views. See:
    <li>APEX views: Home > Application Builder > Application > Utilities > Application Express Views
    <li>Monitoring Activity Within a Workspace
    <li>Creating Custom Activity Reports Using APEX_ACTIVITY_LOG
    Note that the underlying logs are purged on a regular basis, so for the long term you need to copy the data to your own tables, as Martin handily suggests here.

  • A question regarding database table partitioning and table indexes in 10g

    We are considering partitioning a large table in our 10g database, in order to improve response time. I believe I understand the various partitioning options, but am wondering about the indexes built over the table. When the table is partitioned, will the indexes also be partitioned "automatically"? Or do I need to also partition the indexes as well?
    Thank you in advance to any and all who respond to this question.

    Hello,
    When you build your partiton table you just need to create indexes locally and they will be partitioned automatically, see following example
    CREATE TABLE YY_EVENT
      PART_KEY       DATE                              NOT NULL,
      SUBPART_VALUE  NUMBER                             NULL,
      EVENT_NAME     VARCHAR2(30 BYTE)                  NULL,
      EVENT_VALUE    NUMBER                             NULL
    TABLESPACE TEST_DATA
    PARTITION BY RANGE (PART_KEY)
      PARTITION Y_EVENT_200901 VALUES LESS THAN (TO_DATE(' 2009-02-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
        TABLESPACE TEST_DATA, 
      PARTITION Y_EVENT_200902 VALUES LESS THAN (TO_DATE(' 2009-03-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
        TABLESPACE TEST_DATA
    -- This will create paritioned indexes automatically
    CREATE INDEX MY_IDX ON YY_EVENT
    (EVENT_NAME)
      TABLESPACE TEST_DATA
    LOGGING
    LOCAL;Regards
    Edited by: OrionNet on Feb 25, 2009 12:05 PM

  • Question regarding using links in Discoverer 10g

    Hi All,
    I have a workbook which uses links. The 1st worksheet is connected to the second worksheet using a simple parameter and link. It works fine.
    But when a users saves this report and tries to use the link, Discoverer tries to open the work sheet from the query which I had created and not the one from the worksheet which the user has saved.
    I am not sure if that the regular feature of the Link functionality or if there is a bug/workaround.
    Is it possible to set these reports to open the worksheet from the saved workbook instead of the original one.
    Any help is appreciated. Please let me know if I have confused you.
    Thanks.

    Hi,
    I've had a look at this on Metalink and there seems to be lots of different bugs with manage links on 10g.
    We build our reports under one user and share it with all other users, easier to manage. We've built some reports exactly has you have and it also works fine. I'll try to resave this as another user and see if we have the same problem.
    For info there are links to several different bugs related to lots of scenarios Here (You'll need metalink access).
    Couldn't find your exact problem in there so you want to raise it with Oracle.
    Regards,
    Lloyd

  • 11gR2 Post-Upgrade Questions Regarding tnsnames, listener, pwd, and init

    Hello.
    Am planning on upgrading a significant # of RHEL5 10gR2 RAC and non-RAC DBs to 11gR2 (11.2.0.3.1, specifically). The servers are still not available to me, but I have been poring on the install and upgrade documents as well as referencing several blogs of users who have done them. I have almost literally read the guides verbatim. I will be using the DBUS - not doing a manual upgrade. Since I cannot test of the upgrade yet, I have a few questions related to POST_UPGRADE actions in terms of the listener, tnsnames, password, and init files.
    1.) The upgrade document indicates on p 3-24, "DBUA then proceeds to create new configuration files (parameter and listener files) in the new Oracle home." Will the init file (assuming spfile will be copied as we are using one everywhere now) have deprecated parameters REMOVED after it is copied over to the NEW/TARGET home?
    2.) While the install/upgrade guides do not call for it, several blogs indicate that the tnsnames and password files should be copied over from the old/source DB network/admin location ($TNSNAMES/admin) to the new/target DB /network/admin location. Do I need to do this or with the DBUA also copy them over? If all 4 files (tnsnames/listener/spfile/password) are copied over, I am not sure why the document doesn't indicate this.
    3.) Other than the spfile being copied over and modified, I don't see any difference between the old/source and new/destination copies of the listener, tnsnames, and password file. Do you agree?
    I am just trying to figure out what really need to be copied over and what doesn't in lieu of the DBUA doing it for me.
    Thank you all for your help. If I had HW to test this out, I would do it. In the meantime, I am writing the procedures to do the actual upgrade.
    Matt

    page 3-24 corresponds to following
    http://docs.oracle.com/cd/E11882_01/server.112/e23633/upgrade.htm#CHDDCBHG
    which states
    You must run the Oracle Net Configuration Assistant before running DBUA. See "Configuring the Listener When Upgrading from Oracle9i".
    If you are upgrading an existing Oracle Enterprise Manager Database Control or if you are configuring a new Oracle Enterprise Manager Database Control for the new Oracle Database 11g release, then the listener must be running before upgrading Oracle Enterprise Manager. If DBUA detects that an Oracle Enterprise Manager upgrade or configuration is requested, and DBUA does not see a listener running, then it prompts you and starts the default listener in either of these cases.
    running netca from new home results in creating a new listener.ora file, this could complain that listener is already used if the old listener is running with the same name or port (default 1521) taken.
    I think the "+DBUA reloads the listener.ora file in both the old and new Oracle Database environments.+" which point c in that list has to be taken in context with the two previous points a, b, where the usecase is shown how services , entries are removed from one listener.ora file and added to another. So to make sure those services are started from the "now" correct home those listener.ora are reloaded.
    If you look in the 11.1 upgrade guide this text is written as "DBUA removes the entry of the upgraded database from the old listener.ora file and reloads the listener of the old database." http://docs.oracle.com/cd/B28359_01/server.111/b28300/upgrade.htm#i1011982
    If after the upgrade old oracle home is not used anymore (no database is running out of that) you can ignore the listener.ora on the old home.

Maybe you are looking for

  • Weblogic ConfigurationException Error

    Hello, I have a big problem My System is OS : Windows 2000 Server EJB Server : Weblogic 5.1.0 and SP5 JDK1.2.2 My Configuration is C:\weblogic\bin>wlconfig WebLogic startup settings are presently: CLASSPATH Prefix d:\java\jdk122\lib\db.jar;d:\java\jd

  • HELP!!! error code 5

    Does anybody know how to recover a file with error code 5, this is a disaster!!! Thanks in advance Leen

  • Mac Mini crashes when watching a video online

    I have a Mac Mini Model (2,1) with Mac OS X (10.6.2). Environment: I use my mac mini as an HTPC. I use a DVI to HDMI converter to connect to a 1080p projector. I use WIRED connection to connect to internet. The sound output is connected to my receive

  • Outlook through ISA Server 2004

    Hello.. I am new in this forums, about this topic... The problem is... I have the new Imac with System Operative 10.7.3... I need the software office 2011 download outlook emails from an ISA Server 2004 .. I managed to navigate with the safari, but t

  • Cant send an email from iPhone 5

    Ever since I got my iPhone 5,I have been unable to send an email. I just get a message to say "The connection to the outgoing server smtp.hotmail.co.uk failed.  Additional Outgoing Mail Server can be configered in Settings>Mail, Contacts, Calendars."