/dmlog

C++ log

Primary LanguageC++MIT LicenseMIT

dmlog

Copyright (c) 2013-2018 brinkqiang (brink.qiang@gmail.com)

dmlog License blog Open Source Love GitHub stars GitHub forks

Build status

Linux Mac Windows
lin-badge mac-badge win-badge

Intro

dmlog based on spdlog

#include "dmlog.hpp"
#include "dmutil.h"
int main(int argc, char* argv[])
{
    DMBench oBench;
    LOG_CRITICAL("hello world {}.", 2019);
    LOG_CRITICAL("It is {:%Y-%m-%d %H:%M:%S}\n", fmt::localtime(time(NULL)));
    for (int i = 0; i < 1000; i++) {
        oBench++;
        LOG_INFO("This message is 116 characters long including the info that comes before it. {}", i);
    }

    LOG_CRITICAL("This concludes the feature demo for dmlog!");
    return 0;
}

Contacts

Thanks