SergiusTheBest / plog

Portable, simple and extensible C++ logging library
MIT License
2.19k stars 385 forks source link

Cannot resolve symbol "init" #286

Closed jokeruarwentto closed 5 months ago

jokeruarwentto commented 5 months ago
#include <iostream>
#include "plog/Log.h"

int main() {
    plog::init(plog::debug, std::cout);

    LOGI << "This is an informational message";
    LOGD << "This is a debug message";
    LOGE << "This is an error message";

    return 0;
}

Using library header (copied include/plog), I'm unable to init plog.

jokeruarwentto commented 5 months ago

README does not talk about "Initializers" at https://github.com/SergiusTheBest/plog?tab=readme-ov-file#step-2-initialization

SergiusTheBest commented 5 months ago

@jokeruarwentto Thank you for pointing this out! I'll update the missing part of the documentation.