Apache: Log4cxx

return to the Apache Foundation

Note: The following is an excerpt from the official Apache Log4cxx site. It is provided here as a convenience and is not authoritative. Refer to the original document as the authoritative reference.

Data sheet for Log4cxx

Title	Log4cxx
Acronym	Log4cxx
Version	v 0.10.0
Operating Systems	Apache Portable Runtime
Downloads	https://logging.apache.org/log4cxx/latest_stable/download.html
Guidelines	https://logging.apache.org/log4cxx/latest_stable/project-info.html
Supported Languages	C++
Documentation	https://logging.apache.org/log4cxx/latest_stable/apidocs/index.html
License	Apache License, Version 2.0
Reference	https://logging.apache.org/log4cxx/latest_stable/l

Source: Short introduction to Apache log4cxx |

Introduction

Apache log4cxx is a logging framework for C++ patterned after Apache log4j, which uses Apache Portable Runtime for most platform-specific code and should be usable on any platform supported by APR. Apache log4cxx is licensed under the Apache License, an open source license certified by the Open Source Initiative.Almost every large application includes its own logging or tracing API. Inserting log statements into code is a low-tech method for debugging it. It may also be the only way because debuggers are not always available or applicable. This is usually the case for multithreaded applications and distributed applications at large.Experience indicates that logging is an important component of the development cycle. It offers several advantages. It provides precise context about a run of the application. Once inserted into the code, the generation of logging output requires no human intervention. Moreover, log output can be saved in persistent medium to be studied at a later time. In addition to its use in the development cycle, a sufficiently rich logging package can also be viewed as an auditing tool.Logging does have its drawbacks. It can slow down an application. If too verbose, it can cause scrolling blindness. To alleviate these concerns, log4cxx is designed to be reliable, fast and extensible. Since logging is rarely the main focus of an application, the log4cxx API strives to be simple to understand and to use.