Code Monkey home page Code Monkey logo

log4cpp's Introduction

All 'README' information is now in the HTML documentation,
see doc/html or the project website (http://log4cpp.sf.net/).

log4cpp's People

Contributors

impala454 avatar meyerj avatar phamelin avatar snrkiwi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

log4cpp's Issues

Version question regarding to original log4cpp

I used the original log4cpp from bellow link:

https://jaist.dl.sourceforge.net/project/log4cpp/log4cpp-1.1.x%20%28new%29/log4cpp-1.1/log4cpp-1.1.3.tar.gz

And the latest original project version is 1.1.3 seems not match orocos-toolchain/log4cpp, what's the versioning between sourceforge project and this one?

Thanks

fatal error: 'log4cpp/config.h' file not found

hi, When I use test example to compile the testmain.cpp, it reports the error as title shows, and I checked the include directory, which really does not contains the head file config.h.

Could you please check it? Or can I use other file instead?

Thanks

Can't build with distcc

This is a minor issue, but it appears that the try_compile macros in the Configure.cmake fails on distcc as it sends some file to compile, and it may fail if the feature is not present, resulting in an error from the remote server.
There should be a way to set the default compiler instead.

Segmentation fault with std::unique_ptr<log4cpp::Appender>

Segmentation fault in the end of program.
g++ (Debian 4.9.2-10) 4.9.2

#include <chrono>
#include <iostream>
#include <memory>

#include "log4cpp/Category.hh"
#include "log4cpp/Appender.hh"
#include "log4cpp/FileAppender.hh"
#include "log4cpp/Layout.hh"
#include "log4cpp/BasicLayout.hh"
#include "log4cpp/Priority.hh"


int main(int, char *[])
{
    using namespace std::chrono;
    using clock = steady_clock;

    int howmany = 1000000;

    std::unique_ptr<log4cpp::Appender> appender( new log4cpp::FileAppender("default", "logs/log4cpp-bench.log") );
    appender->setLayout(new log4cpp::BasicLayout());

    log4cpp::Category& root = log4cpp::Category::getRoot();
    root.addAppender(appender.get());
    root.setPriority(log4cpp::Priority::INFO);

    auto start = clock::now();
    for (int i = 0; i < howmany; ++i)
        root << log4cpp::Priority::INFO << "log4cpp message # " << i << ": This is some text for your pleasure";

    duration<float> delta = clock::now() - start;
    float deltaf = delta.count();
    auto rate = howmany / deltaf;

    std::cout << "Total: " << howmany << std::endl;
    std::cout << "Delta = " << deltaf << " seconds" << std::endl;
    std::cout << "Rate = " << rate << "/sec" << std::endl;

    root.shutdown();
    return 0;
}

doc is out of date

master dont have configure, as a rookie, i dont know how to build 😭

Can not Build With Embarcadero RAD Studio XE C++ Builder

It is giving below Error

Checking project dependencies...
Building log4cpp.cbproj (Debug, Win32)
bcc32 command line for "....\src\Appender.cpp"
c:\program files (x86)\embarcadero\rad studio\8.0\bin\bcc32.exe -D_DEBUG;NO_STRICT;LOG4CPP_HAS_DLL;LOG4CPP_BUILD_DLL;WIN32;;NO_STRICT;LOG4CPP_HAS_DLL;
LOG4CPP_BUILD_DLL;WIN32; -D;_RTLDLL;_NO_VCL -nDebug_Build -I....\src;"c:\program files (x86)\embarcadero\rad studio\8.0\include";....\include;
"c:\program files (x86)\embarcadero\rad studio\8.0\include\dinkumware";....\src;"C:\Program Files (x86)\Embarcadero\RAD
Studio\8.0\include\boost_1_39\boost\tr1\tr1";"C:\Program Files (x86)\Embarcadero\RAD Studio\8.0\include\boost_1_39";"c:\program files
(x86)\embarcadero\rad studio\8.0\include";"c:\program files (x86)\embarcadero\rad studio\8.0\include\windows\crtl";"c:\program files
(x86)\embarcadero\rad studio\8.0\include\dinkumware";"c:\program files (x86)\embarcadero\rad studio\8.0\include\windows\sdk";"c:\program files
(x86)\embarcadero\rad studio\8.0\include\windows\rtl";"c:\program files (x86)\embarcadero\rad studio\8.0\include\windows\vcl";"C:\Program Files
(x86)\Raize\CS4\Lib\RS-XE";"c:\program files (x86)\embarcadero\rad studio\8.0\RaveReports\Lib";"C:\Program Files\Developer
Express.VCL\Library\CBuilder15" -y -c -tD -tM -C8 -oDebug_Build\Appender.obj -Od -v -vi- -H=Debug_Build\log4cpp.pch -H -tWM -Vx -r- -k -tWD -Ve -k
....\src\Appender.cpp
[BCC32 Warning] Appender.hh(164): W8058 Cannot create pre-compiled header: initialized data in header
[BCC32 Error] Appender.cpp(23): E2247 'Appender::_deleteAllAppenders()' is not accessible
[BCC32 Error] Appender.cpp(34): E2247 'Appender::_appenderMapStorageInstance' is not accessible
[BCC32 Error] Appender.cpp(42): E2247 'Appender::_appenderMapStorageInstance' is not accessible
[BCC32 Warning] Appender.cpp(113): W8004 'allAppenders' is assigned a value that is never used
Failed
Elapsed time: 00:00:00.4

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.