Your SlideShare is downloading. ×
Log4cpp - Updated - to verify modify updates
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Log4cpp - Updated - to verify modify updates

396

Published on

This is a help file of log4cpp

This is a help file of log4cpp

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
396
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Log4cpp in auction Angus Chen March 9, 2007
  • 2. Why and when writing logs
    • debug message.
    • error handle.
    • system monitor.
  • 3. History
    • v1. cerr, cout to standard output or error, or directly open and write into file
    • v2. YAX_YLOG, define DEBUG level.
    • v3. log4cpp, full configurable.
  • 4. log4cpp concept
    • logger a.b.c.d.e=>logger category.
    • log appender=> output log writer.
    • use configuration file to define which logger uses which kind of appender.
  • 5. Usage
    • step1.
    • #include <auctions/log/yapLogcpp.h>
    • class xxx{
    • static LoggerPtr logger;
    • }
    • step2.
    • LoggerPtr xxx::logger=getLogger(&quot;myauc.UserWatchingBO&quot;);
    • step3.
    • if(DEBUG_ENABLE){
    • logdebug(logger)<< &quot;from is &quot;<<from;
    • }
  • 6. Writing a testcase
    • void setUp(){ Yahoo::Taiwan::Auction::yapLogcpp::test();
    • }
  • 7. Configuration
    • default show message > debug level.
    • else read all files in /home/y/conf/yap_logcpp/
    • log file and reference http://twiki.corp.yahoo.com/view/Devel/log4cpp_y
  • 8. Q&A

×