SlideShare a Scribd company logo
Log4cpp in auction Angus Chen March 9, 2007
Why and when writing logs debug message. error handle. system monitor.
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.
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.
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; }
Writing a testcase void setUp(){  Yahoo::Taiwan::Auction::yapLogcpp::test(); }
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
Q&A

More Related Content

ODP
Django debugging
PPT
Fundamentals of Programming Chapter 7
PDF
Analyzing ReactOS One More Time
PPT
Looping statements in Java
ODP
Introduction of Object Oriented JavaScript
PPTX
Loops in java script
PPTX
Loop(for, while, do while) condition Presentation
PPTX
C++ loop
Django debugging
Fundamentals of Programming Chapter 7
Analyzing ReactOS One More Time
Looping statements in Java
Introduction of Object Oriented JavaScript
Loops in java script
Loop(for, while, do while) condition Presentation
C++ loop

What's hot (17)

PPTX
Phasers to stunning
PPT
While loop
PPT
STORAGE CLASSES
DOCX
Java loops
PDF
Using Java 8 on Android
DOCX
Cmis 212 module 2 assignment
PDF
Test your code
PPTX
Forloop
PPTX
Switch case and looping
PPTX
An introduction to Object Oriented JavaScript
PPTX
In search of JavaScript code quality: unit testing
PPTX
Presentation on nesting of loops
PPTX
Closures
PDF
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 9 - starting demo gerrit
PDF
Golang dot-testing-lite
Phasers to stunning
While loop
STORAGE CLASSES
Java loops
Using Java 8 on Android
Cmis 212 module 2 assignment
Test your code
Forloop
Switch case and looping
An introduction to Object Oriented JavaScript
In search of JavaScript code quality: unit testing
Presentation on nesting of loops
Closures
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 9 - starting demo gerrit
Golang dot-testing-lite
Ad

Recently uploaded (20)

PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
A Presentation on Artificial Intelligence
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPT
Teaching material agriculture food technology
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Machine learning based COVID-19 study performance prediction
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
Cloud computing and distributed systems.
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
Spectroscopy.pptx food analysis technology
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Approach and Philosophy of On baking technology
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
A Presentation on Artificial Intelligence
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Teaching material agriculture food technology
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Chapter 3 Spatial Domain Image Processing.pdf
MIND Revenue Release Quarter 2 2025 Press Release
Machine learning based COVID-19 study performance prediction
A comparative analysis of optical character recognition models for extracting...
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Mobile App Security Testing_ A Comprehensive Guide.pdf
Review of recent advances in non-invasive hemoglobin estimation
Cloud computing and distributed systems.
Building Integrated photovoltaic BIPV_UPV.pdf
Programs and apps: productivity, graphics, security and other tools
Spectroscopy.pptx food analysis technology
The Rise and Fall of 3GPP – Time for a Sabbatical?
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Approach and Philosophy of On baking technology
Ad

Log4cpp - Updated - to verify modify updates

  • 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