plog/1.1.10

Pretty powerful logging library in about 1000 lines of code
Recipe info
2023-09-20

Available packages
Header Only

Install
Add the following line to your conanfile.txt:
[requires]
plog/1.1.10

Using plog

Note

If you are new with Conan, we recommend to read the section how to consume packages.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
plog/1.1.10
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("plog/1.1.10")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): plog
  • CMake target name(s): plog::plog
  • pkg-config file name(s): plog.pc

A simple use case using the CMake file name and the global target:

# ...
find_package(plog REQUIRED)
# ...
target_link_libraries(YOUR_TARGET plog::plog)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the plog homepage listed above:

#include "plog/Appenders/AndroidAppender.h"
#include "plog/Appenders/ArduinoAppender.h"
#include "plog/Appenders/ColorConsoleAppender.h"
#include "plog/Appenders/ConsoleAppender.h"
#include "plog/Appenders/DebugOutputAppender.h"
#include "plog/Appenders/DynamicAppender.h"
#include "plog/Appenders/EventLogAppender.h"
#include "plog/Appenders/IAppender.h"
#include "plog/Appenders/RollingFileAppender.h"
#include "plog/Converters/NativeEOLConverter.h"
#include "plog/Converters/UTF8Converter.h"
#include "plog/Formatters/CsvFormatter.h"
#include "plog/Formatters/FuncMessageFormatter.h"
#include "plog/Formatters/MessageOnlyFormatter.h"
#include "plog/Formatters/TxtFormatter.h"
#include "plog/Helpers/AscDump.h"
#include "plog/Helpers/HexDump.h"
#include "plog/Helpers/PrintVar.h"
#include "plog/Init.h"
#include "plog/Initializers/ConsoleInitializer.h"
#include "plog/Initializers/RollingFileInitializer.h"
#include "plog/Log.h"
#include "plog/Logger.h"
#include "plog/Record.h"
#include "plog/Severity.h"
#include "plog/Util.h"
#include "plog/WinApi.h"