Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 3

Qt-interest Archive, December 2007
Qt logging ?


Message 1 in thread

Is there any Qt support for logging ? I can't see any,
but there's a lot of classes in there ...

I'm looking for something like this:

QLogger logger;
.
.
logger(QLogger::warn, "Problem in level 3");
.
.
logger(QLogger::error, "Incorrect password supplied");

and where the o/p can be redirected to file/syslog/some Win32
thing/etc

-- 
 [ signature omitted ] 

Message 2 in thread

Hi Stephen,

Some time ago I was looking for something similar and didn't find
anything inside Qt but installMessageHandler() global function.

I'm currently using log4cpp which fits it what you're looking for, suppose.

Regards,

Jorge

Stephen Collyer wrote:
> Is there any Qt support for logging ? I can't see any,
> but there's a lot of classes in there ...
> 
> I'm looking for something like this:
> 
> QLogger logger;
> .
> .
> logger(QLogger::warn, "Problem in level 3");
> .
> .
> logger(QLogger::error, "Incorrect password supplied");
> 
> and where the o/p can be redirected to file/syslog/some Win32
> thing/etc
> 

--
 [ signature omitted ] 

Message 3 in thread

Jorge Abrines wrote:
> Hi Stephen,
> 
> Some time ago I was looking for something similar and didn't find
> anything inside Qt but installMessageHandler() global function.
> 
> I'm currently using log4cpp which fits it what you're looking for, suppose.

That's probably what I'll use. I would have preferred a
Qt based solution however. Any plans for one ?

-- 
 [ signature omitted ] 

Message 4 in thread

Hi Stephen,

FYI: our FEAST Client Server Application framework also contains a Qt based logging solution (based on qDebug, qWarning and qCritical).

-- 
 [ signature omitted ] 

Message 5 in thread

I personally used log4j in the past for java development and I think log4cpp
is the c++ version of Log4j. I really liked log4j, so I suspect log4cpp
should be good.

You might want to take a look at the boost logging module.

"Stephen Collyer" <scollyer@xxxxxxxxxxxxxxxx> wrote in message
news:47669CDA.4080705@xxxxxxxxxxxxxxxxxxx
> Jorge Abrines wrote:
> > Hi Stephen,
> >
> > Some time ago I was looking for something similar and didn't find
> > anything inside Qt but installMessageHandler() global function.
> >
> > I'm currently using log4cpp which fits it what you're looking for,
suppose.
>
> That's probably what I'll use. I would have preferred a
> Qt based solution however. Any plans for one ?
>
> -- 
> Regards
>
> Steve Collyer
> Netspinner Ltd
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
"unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/


--
 [ signature omitted ] 

Message 6 in thread

B.C. wrote:
> I personally used log4j in the past for java development and I think log4cpp
> is the c++ version of Log4j. I really liked log4j, so I suspect log4cpp
> should be good.
> 
> You might want to take a look at the boost logging module.

I didn't know there was one. I can't find it on the Boost
site, and Google only turns up stuff that looks like
proposals for such a thing. Does it really exist ?

-- 
 [ signature omitted ] 

Message 7 in thread

http://www.torjo.com/log2/index.html

I am not too sure if it is officially part of boost or it is a sort of
sand-box project. However, the guy uses the name boost logging.

I would give log4cpp a try as well.


"Stephen Collyer" <scollyer@xxxxxxxxxxxxxxxx> wrote in message
news:4767935D.5010203@xxxxxxxxxxxxxxxxxxx
> B.C. wrote:
> > I personally used log4j in the past for java development and I think
log4cpp
> > is the c++ version of Log4j. I really liked log4j, so I suspect log4cpp
> > should be good.
> >
> > You might want to take a look at the boost logging module.
>
> I didn't know there was one. I can't find it on the Boost
> site, and Google only turns up stuff that looks like
> proposals for such a thing. Does it really exist ?
>
> -- 
> Regards
>
> Steve Collyer
> Netspinner Ltd
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
"unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/


--
 [ signature omitted ] 

Message 8 in thread

There is no logging support in boost. The author of this library submitted it to
 the boosters, but it was rejected:
http://lists.boost.org/Archives/boost/2005/11/96855.php

There is also pantheios:
http://pantheios.sourceforge.net/

With log4cxx it is the most advanced one.

Quoting "B.C." <bikerc@xxxxxxxxx>:

> http://www.torjo.com/log2/index.html
>
> I am not too sure if it is officially part of boost or it is a sort of
> sand-box project. However, the guy uses the name boost logging.
>
> I would give log4cpp a try as well.
>
>
> "Stephen Collyer" <scollyer@xxxxxxxxxxxxxxxx> wrote in message
> news:4767935D.5010203@xxxxxxxxxxxxxxxxxxx
> > B.C. wrote:
> > > I personally used log4j in the past for java development and I think
> log4cpp
> > > is the c++ version of Log4j. I really liked log4j, so I suspect log4cpp
> > > should be good.
> > >
> > > You might want to take a look at the boost logging module.
> >
> > I didn't know there was one. I can't find it on the Boost
> > site, and Google only turns up stuff that looks like
> > proposals for such a thing. Does it really exist ?
> >
> > --
> > Regards
> >
> > Steve Collyer
> > Netspinner Ltd
> >
> > --
> > To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> > List archive and information: http://lists.trolltech.com/qt-interest/
>
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>


-- 
 [ signature omitted ] 

Message 9 in thread

On Mon, Dec 17, 2007 at 03:03:35PM +0000, Stephen Collyer wrote:
> Is there any Qt support for logging ? I can't see any,
> but there's a lot of classes in there ...
> 
> I'm looking for something like this:
> 
> QLogger logger;
> logger(QLogger::warn, "Problem in level 3");
> logger(QLogger::error, "Incorrect password supplied");
> and where the o/p can be redirected to file/syslog/some Win32
> thing/etc

I've already spend some time with searching some Qt-based logging
framework (similar to log4j), however with no success. 

I have developed little (and maybe a bit ugly). It's based on Qt's
" qDebug() <<" syntax.

here is link to SVN repository:
http://moto4lin.svn.sourceforge.net/viewvc/moto4lin/branches/qt4/moto4lin/src/libqtlogger/

in parent directories a lot of classes uses it.

-- 
 [ signature omitted ] 

Attachment: signature.asc
Description: Digital signature