orocos-toolchain / log4cpp Goto Github PK
View Code? Open in Web Editor NEWLog4cpp maintained fork by OrocosDevs
License: GNU Lesser General Public License v2.1
Log4cpp maintained fork by OrocosDevs
License: GNU Lesser General Public License v2.1
All 'README' information is now in the HTML documentation, see doc/html or the project website (http://log4cpp.sf.net/).
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
#ifdef APPLE
_flags(O_CREAT | O_APPEND | O_WRONLY),
#else
_flags(O_CREAT | O_APPEND | O_WRONLY | O_LARGEFILE),
#endif
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
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 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;
}
master dont have configure, as a rookie, i dont know how to build 😭
We have a legacy windows application that uses visual studio 2005.
And we want to use log4cpp for it. What's the latest version that supports this version of visual studio?
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
Why does not PropertyConfigurator provide a function to read from an istream ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.