Hi All
I am using QT as a dev environment.
Qt 5.0.2 MinGW 32bit
If you think the QMessageLogger Class is not quite up to the task.
and want to use the log library for c++
put this in log4cpp\qt5\log4cpp\log4cpp.pro
#---------------------------------
# Project created by Peter Wise
# QtCreator QT 5.0.2
# location under log4cpp
# \qt5\log4cpp
# Copyright 2013, Peter Wise. All rights reserved.
# Release under GNU LESSER GENERAL PUBLIC LICENSE
#---------------------------------
I am not sure that I understood your intention quite right, but it seems to me that QT's logger just was not enough for your needs and therefore you applied log4cpp library. Is that correct understanding?
Alex.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi All
I am using QT as a dev environment.
Qt 5.0.2 MinGW 32bit
If you think the QMessageLogger Class is not quite up to the task.
and want to use the log library for c++
put this in log4cpp\qt5\log4cpp\log4cpp.pro
QT -= gui
QT += network
TARGET = log4cpp
TEMPLATE = lib
DEFINES += LOG4CPP_SUPPLY_DLLMAIN
DEFINES -= UNICODE
DEFINES *= WIN32
LIBS += -lws2_32
INCLUDEPATH += ../../include
SOURCES += \
../../src/Win32DebugAppender.cpp \
../../src/TriggeringEventEvaluatorFactory.cpp \
../../src/TimeStamp.cpp \
../../src/SyslogAppender.cpp \
../../src/StringUtil.cpp \
../../src/StringQueueAppender.cpp \
../../src/snprintf.c \
../../src/SmtpAppender.cpp \
../../src/SimpleLayout.cpp \
../../src/SimpleConfigurator.cpp \
../../src/RollingFileAppender.cpp \
../../src/RemoteSyslogAppender.cpp \
../../src/PThreads.cpp \
../../src/PropertyConfiguratorImpl.cpp \
../../src/PropertyConfigurator.cpp \
../../src/Properties.cpp \
../../src/Priority.cpp \
../../src/PortabilityImpl.cpp \
../../src/PatternLayout.cpp \
../../src/PassThroughLayout.cpp \
../../src/OstreamAppender.cpp \
../../src/OmniThreads.cpp \
../../src/NTEventLogAppender.cpp \
../../src/NDC.cpp \
../../src/MSThreads.cpp \
../../src/Manipulator.cpp \
../../src/LoggingEvent.cpp \
../../src/Localtime.cpp \
../../src/LevelEvaluator.cpp \
../../src/LayoutsFactory.cpp \
../../src/LayoutAppender.cpp \
../../src/IdsaAppender.cpp \
../../src/HierarchyMaintainer.cpp \
../../src/FixedContextCategory.cpp \
../../src/Filter.cpp \
../../src/FileAppender.cpp \
../../src/FactoryParams.cpp \
../../src/DummyThreads.cpp \
../../src/DllMain.cpp \
../../src/Configurator.cpp \
../../src/CategoryStream.cpp \
../../src/Category.cpp \
../../src/BufferingAppender.cpp \
../../src/BasicLayout.cpp \
../../src/BasicConfigurator.cpp \
../../src/AppenderSkeleton.cpp \
../../src/AppendersFactory.cpp \
../../src/Appender.cpp \
../../src/AbortAppender.cpp
HEADERS += \
../../src/StringUtil.hh \
../../src/PropertyConfiguratorImpl.hh \
../../src/Properties.hh \
../../src/PortabilityImpl.hh \
../../src/Localtime.hh
INSTALLS += target
Hope this helps some one.
Peter
Hello Peter,
I am not sure that I understood your intention quite right, but it seems to me that QT's logger just was not enough for your needs and therefore you applied log4cpp library. Is that correct understanding?
Alex.