How to view o/p using Logger
I want to view the output uisng logger. I am using netbeans IDE 6.0. For this i imported the package org.apache.log4j.Logger. I included the log4j.xml file in the source package and org.apache.log4j in the libraries.
My question is how to veiw the out put using logger as we view using system.out.println. Is the correct way of adding the
I used the following command line in my class
protected final Logger logger = Logger.getLogger(getClass());
It's more normal to do this:
public class Foo {
private static final Logger logger = Logger.getLogger(Foo.class);
}The advantage is that you don't create a Logger object for every instance of the class in question.
The disadvantage is that it's common to cut and paste the line in question and then forget to change the class reference passed to the getLogger method, leading to some very mildly misleading logger output (not a big deal).
Similar Messages
-
I am participating in an online class whose website uses Microsoft Content Viewer to view the class content. The browser opens a new page, but nothing is there. At the top of the tab it says Microsoft Content Viewer, and nothing else. Can anyone tell me how to view my course using Firefox? I would prefer not to use IE, but it works there.
When originally creating the pdf, you would need to choose another pdf conversion setting. In Word if you use the pdf menu, change your settings there: Adobe PDF > Change Conversion Settings. I would use High Quality Print instead. If you use the File > Print method, click the Properties button next to the Adobe PDF printer selection.
For your already created form, you can change the file so your users will not encounter issues. In Acrobat 9, which hopefully is similar in process to 8: Advanced > Preflight > Profile tab > PDF/A compliance > Remove PDF/A information.(You'll have to unsecure your form first).
You can read about PDF/A files in the Help. -
How to view alerlog contents using SQL?
How to view alertlog contents using SQL?
Hi,
Why don't you use the OEM Database Console ?? Now, in order to view the contents of the alert log file using a SELECT statement, you need to create a external table:
create or replace
directory background_dump_dest_dir
as '<your_oracle_home>/bdump';
CREATE table alert_log_external
(line varchar2(4000) )
ORGANIZATION EXTERNAL
(TYPE oracle_loader
DEFAULT DIRECTORY background_dump_dest_dir
ACCESS PARAMETERS (
RECORDS DELIMITED BY newline
nobadfile
nologfile
nodiscardfile
FIELDS TERMINATED BY '#$~=ui$X'
MISSING FIELD VALUES ARE NULL
(line)
LOCATION ('alert_<sid_of your_database>.log') )
REJECT LIMIT UNLIMITED;Cheers -
How to view the file using the content
Hi all,
I have uploaded the data from a binary file to an internal table using GUI_UPLOAD.
Could you please suggest any way how i can view the file using the content.
The binary content looks as follows.
345DCC27F35A291DFD5496E0609E8ED08F3405AF5FE3DDC574166CDE0D79B7A174BC6
D87597FA824B3E56E82E451D4C2B4D32A423279A668BB6690C7E9956E90CFE766CB37
39E70D650300006D08000011000000776F72642F73657474696E67732E786D6C9C56D
69B6197B7F5BDD4C58841ECC06943522630781EC71767DF5504F0B6B3C4674DEE0D46
Thanks,
VishnuHi all,
Thanks a lot for the reply.
Here, my requirement is to open the content as a file.
I have used 'GUI_UPLOAD' FM to upload the contents & need the same file(PDF, JPG, DOC etc) to be displayed using the content.
Eg., If i upload an Image using the FM 'GUI_UPLOAD', based on the contents & extention can i see an image?
Please help me in the regard,
Thanks,
Vishnu -
How to view creation date using 'ls' command?
Hi all,
Anyone know how to get the 'ls' command to display creation date? When I do 'ls -la' I get the mod date, but cannot figure out how to view the creation date.
Thanks!
Mac OS X (10.4.2)While there is NO way to do this as ls will only show the mod time there is using another program
DL this HFSDebug.
Running it on any file will display to you Create, Mod and access times. An example for you
sudo hfsdebug /usr/local/bin/hfsdebug\ 2.04\ BETA\ G5
path = Firefly:/usr/local/bin/hfsdebug 2.04 BETA G5
# Catalog File Record
type = file
file ID = 20112378
flags = 0000000000001010
. File has a thread record in the catalog.
. File has security data (ACLs).
reserved1 = 0
createDate = Wed Dec 14 00:57:14 2005
contentModDate = Wed Dec 14 00:57:14 2005
attributeModDate = Wed Dec 14 00:57:14 2005
accessDate = Thu Dec 15 20:42:53 2005
backupDate = Fri Jan 1 00:00:00 1904
# BSD Info
ownerID = 0 (root)
groupID = 20 (staff)
adminFlags = 00000000
ownerFlags = 00000000
fileMode = -rwxr-xr-x
linkCount = 0
textEncoding = 0
attrBlocks = 0
# Finder Info
fdType = 0
fdCreator = 0
fdFlags = 0000000000000000
fdLocation = (v = 0, h = 0)
opaque = 0
# Data Fork
logicalSize = 121744 bytes
totalBlocks = 30
fork temperature = not a hot file
clumpSize = 101 bytes
extents = startBlock blockCount % of file
0x362cd4 0x1e 100.00 %
30 allocation blocks in 1 extents total.
30.00 allocation blocks per extent on an average.
# Resource Fork
logicalSize = 0 bytes
Enjoy!
Peter
PowerMac G5 DP 2.5Ghz Mac OS X (10.4.3) -
How to view stored procedure using SQLPlus
I have created the following stored procedure in Oracle, I would like to know how to view this stored procedure using SQLPlus:
CREATE PROCEDURE get_product_code(prod_no IN VARCHAR2) IS
CURSOR Getno IS
<my_query_goes_here>
BEGIN
For Getno_cur IN Getno LOOP
DBMS_OUTPUT.PUT_LINEGetno_cur.name);
END LOOP;
END;
run;Hi,
You can also use USER_SOURCE in place of ALL_SOURCE, for getting your own procedure code (or any pl/sql schema object).
Regards -
How to view iOS requirement using Apple Search API
I'm currently using the Apple Search API to search AppStore content, and i want to view the iOS requirement for the seleceted apps that i have already searched, but i didn't see any field that show the iOS requirement for the apps, so how to view that?
Thanks in advanceI am surprised to say that I don't think this is possible. Which is strange because upon inspection of the JSON results there is a return key for EVERYTHING except target iOS version. I would imagine that this may be an oversight by apple. It does not make sense that I can search "supportedDevices", "isGameCenterEnabled", and "fileSizeBytes" but not minimum or target OS.
-
How to view clob data using sql
Hi,
In our database, we have one table that is having one column of CLOB datatype but now i want to view the data using sql select query but it throws error: "Datatype not supported".
Could any one please let me know how to view the clob data using select query.
Oracle DB version : 10.2.0.3
Thanksh5.
use read procedure
PROCEDURE READ (
lobsrc IN BFILE|BLOB|CLOB ,
amount IN OUT BINARY_INTEGER,
offset IN INTEGER,
buffer OUT RAW|VARCHAR2 );
example Updating LOB by Using DBMS_LOB in PL/SQL
DECLARE
lobloc CLOB; -- serves as the LOB locator
text VARCHAR2(32767):='Resigned: 5 August 2000';
amount NUMBER ; -- amount to be written
offset INTEGER; -- where to start writing
BEGIN
SELECT resume INTO lobloc
FROM employees
WHERE employee_id = 405 FOR UPDATE;
offset := DBMS_LOB.GETLENGTH(lobloc) + 2;
amount := length(text);
DBMS_LOB.WRITE (lobloc, amount, offset, text );
text := ' Resigned: 30 September 2000';
SELECT resume INTO lobloc
FROM employees
WHERE employee_id = 170 FOR UPDATE;
amount := length(text);
DBMS_LOB.WRITEAPPEND(lobloc, amount, text);
COMMIT;
END; -
How to view image by using webcam at other computer.
I am student. Now I make one project by using LabVIEW software.
Now, my question is:
I have two computer, both computer got install software LabVIEW. And the programming for viewing image by using webcam already finished done.
Now is, I want to open Webcam at computer B from Computer A. I already search, found that techique "Web Publishing Tools" can do this. Beside this, got another easier technique to do this?There are other ways in which you can transfer images over the network but you will need to do some programming for it. Have a look at the following links:
Streaming IMAQ Images Over a Network (or Internet)
Transfer Images Over the Network
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies -
How to view multiple reports using crystal reports 2008
Hi ,
I am working on vb6 project where in i am trying to generate reports using crystal reports 2008.
For this , i am making use of Interop Form Wrapper class in vb6.
I have a business requirement where in i need to view multiple reports on my screen.
please suggest me as to how this can be achieved.
Thanks in Advance
Regards,
RamnathHi Ludek,
I am directly now using crystal report viewer control in my vb6 project.
As mentioned in previous mail, i have created a Interop Wrapper class over crystal report viewer control in .Net using visual studio 2008 and i am making use of wrapper class in my vb6 project.
I am able to access all the properties that have been defined in my Interop wrapper Class but the only stuff i need is to view multiple reports generated one after the another for a single button click Event.
Please find below the code that iam using to load and generate reports.
Note:
1. frm is the instance of my Interop Wrapper Class built over CR viewer control
2. All the user defined methods of Wrapper class that you see below will internally call the actual crystalreportviewer properties defined in my Wrapper class
Say for e.g frm.DisplayToolbar(True) will internally execute crystalreportViewer1.DisplayToolbar = True
frm.SetReportSource(strRptFilePath,0)
frm.SetSelectionFormula(strrecordSelectionFormula)
frm.DisplayToolbar(True)
frm.ShowExportOption(True)
frm.ShowPrintOption(True)
frm.ShowRefreshOption(True)
frm.ShowPAgeNavigateOption(True)
frm.ShowZoomOption(True)
frm.ShowParameterPanelOption(True)
frm.Show()
Thanks in Advance
Regards,
Ramnath -
IOS 7: How to view shared calendars using apple Calendar server
We use an OS X Server with Calendar server. On OS X you can see shared (delegated) calendars in Calendar by selecting the them in the preferences.
Using iOS 6 one could view shared CalDAV calendars by adding the same account more than once each with a different server URL. A fair bit more work but once configured it worked like a charm.
The Calendar app on iOS 7 still does not show delegated or shared calendars using the Calendar server from Apple. Because iOS 7 does not allow to add a CalDAV account more than once the iOS 6 workaround is no longer possible.
How can I view shared Calendars on iOS 7?See also:
https://discussions.apple.com/message/23105327 -
How to view shows purchased using Apple TV on a Mac computer
Greetings,
I have purchased several shows while viewing my family TV and through Apple TV. I can replay those purchases on my family TV no problem (through Apple TV), however I cannot seem to find where those purchases reside so that I may view them on my computer workstation, or other Apple devices. I have iCloud but there is no listing of purchased content there, nor are those purchases listed in iTunes. I thought if content is purchased through Apple TV that it should be available to other devices.
Thanks,
ScottThis should be of some help.
How to use multiple iPhone, iPad, or iPod devices with one computer
Your daughter is too young to have an Apple ID because the minimum age is 13 years old. You can use her email address for FaceTime and Messages. You add the address as the contact address when you activate both of those apps. But both apps will still have to be tied to your Apple ID.
I was managing 5 different devices with one iTunes library and all devices had their own unique content on them. It is not that difficult to manage.
there is lots and lots of information out there on how to do this. Check some of these out for more information.
https://www.google.com/search?q=managing%20multiple%20devices%20with%20one%20iTu nes%20library
This will help with FaceTime and Messages.
http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l -
How to view RMAN errors using v$views?
Hi,
From v$rman_status, i got the following output. But how to know what kind of errors throu v$views.
SID RECID STAMP PARENT_RECID PARENT_STAMP SESSION_RECID
SESSION_STAMP ROW_LEVEL ROW_TYPE COMMAND_ID
OPERATION STATUS MBYTES_PROCESSED
START_TIM END_TIME INPUT_BYTES OUTPUT_BYTES OPT OBJECT_TYPE OUTPUT_DEVICE_TYP
0 6540 734738844 6540
734738844 0 SESSION 2010-11-10 22:07:21
RMAN COMPLETED WITH ERRORS_ 0
10/NOV/10 10/NOV/10 0 0 NO
-thanks
Sakthi.Hi Sakthivel
From v$rman_status, i got the following output. But how to know what kind of errors throu v$views. You need to query v$rman_output for the info.
first determine the session_stamp (or use the one from v$rman_status):
select distinct session_stamp
from v$rman_output order by session_stamp desc;Than use
select output from v$rman_output
where session_stamp like '&session_stamp%'
/to get the output of the rman session.
Rgds,
Tycho -
How to view mdsplus data using labview
I posted this question in the Labview board, but seems nobody replies it so far. I am not sure which board is the best place to post this question. So I just reposted here. Thanks a lot.
I am a newbie to Labview. I am trying to write some vi to view and write data to Mdsplus. I have downloaded Mdsplus(labview), and can find the Mdsplus functions, like mdsconnect, mdsput, ect, in the Call Library Function vi. But I have no ideal of how to use it. I tried to use Mdsconnect function to connect to some machine, but it always gives me an error message like, Labview: An exception occurred within the external code called by a call library function node....... I was searching for help documents on the internet, but couldn't find anything useful. Could you please help me for this problem? If you have any example of such vi, or teach me how to do it, that would be very helpful. I am using Labview 8 (windows). I would greatly appreciate your help! Looking forward for your reply.
Solved!
Go to Solution.oops,
I didn't attach these correctly in the previous post.
Greg
Attachments:
Example_Read_Write_MDS_Array.vi 25 KB
Open_MDS_Shot2.vi 45 KB -
How to view Word DOC using Word Viewer
I am a new administrator for a SharePoint 2010 farm with 10s of GB of Microsoft Word documents, most of which are in Word 97-2003 DOC format. I have recently configured the Word Viewing service and can of course view Word 2010 documents saved
to the farm, but how to get the legacy archive of DOCs viewable using Word Viewing as well?
From all that I have read, OWA only works for Office 2010 documents. Is there any tweak available to get it to be able to view older formatted Word documents also in the browser?
Baring this, are there batch conversion utilities available? I have searched and found some
here and here, but am seeking more robust solutions.
I would be interested in learning about what other administrators have done to resolve similar problems.
Sincerely,
SteveHi Steve,
I understand that the error occurred when you open the word files.
I recommend to delete the cache files for the corresponding web aaplication using PowerShell.
Go to Central Administration > Application Management > View all site collections > select the web application and then check for site collection with URL /sites/Office_Viewing_Service_Cache and make sure it is there. Then open http://{webapp url}/sites/Office_Viewing_Service_Cache
and you will see the cached
files of this web application.
You can also add the entry below in web.config to see if the issue still occurs:
<compilation optimizeCompilations="true">
More information:
http://kancharla-sharepoint.blogspot.in/2013/08/sharepoint-word-web-app-cannot-open.html
I also recommend to check the event log and ULS log to see if anything unexpected occurred.
To check event log, click the Start button and type “Event Viewer” in the Search box.
For SharePoint 2010, by default, ULS log is at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS.
Best regards.
Thanks
Victoria Xia
TechNet Community Support
Maybe you are looking for
-
Re-read disk size in Solaris 10 x86 / VMware
Hi Using # uname -a SunOS host1 5.10 Generic_142910-17 i86pc i386 i86pc We have a 30G virtual disk, on top of which a UFS filesystem is living, mounted, and used. The Virtual disk has been resized to 40G. I know I need to change the fdisk partition s
-
HI, I would like to know if it is possible to activate the electronic signature in the BOM (CS01 & CS02). Thanks, Giuseppe
-
I recently purchased a season tv show. It downloaded fine...now, how do I watch it on my iPad?
-
Can i upload photos from my nikon coolpix?
I can view the photos in iPhoto desktop, but they will not upload. I get an error code that says the file is an unrecognizable format. DSCN1450.JPG this is the format. RacerPig
-
WebLogic SOAP - newbie question
Hi all I am new to WebLogic. I did some research a while back and discovered that WebLogic did not support any SOAP definition and that if you needed to use .Net from a windows platform your only option was to write a DotTux Tuxedo and .NET integrati