log4cplus-2.1.1

Introduction to log4cplus

log4cplus is an easy to use C++20 logging API providing thread-safe, flexible, and arbitrarily granular control over log management and configuration. It is modeled after the Java log4j API.

[Note]

Note

Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.

Package Information

log4cplus Dependencies

Optional

(Qt-5.15.12 or qt-alternate-5.15.12)

Installation of log4cplus

Build log4cplus by running the following command:

./configure --prefix=/usr &&
make

To test the results, issue: make check.

Now, install the package as the root user:

make install

Command Explanations

--with-qt5: This option enables compilation of a separate shared library (liblog4cplusqt5debugappender) that implements Qt5DebugAppender. It requires Qt5 and pkg-config to be available.

Contents

Installed Programs: None
Installed Library: log4cplus.so
Installed Directories: None

Short Descriptions

log4cplus.so

is the log4cplus library