glog.h File Reference

#include "gdef.h"
#include <sstream>
#include <string>

Go to the source code of this file.

Namespaces

namespace  G

Classes

class  G::Log
 A static class for doing iostream-based logging. More...
class  G::Log::Line
 A class for adding line number information to the Log output. More...

Defines

#define G_LOG_OUTPUT(expr, severity)   do { G::Log(severity,__FILE__,__LINE__) << expr ; } while(0)
 Macros: G_LOG, G_LOG_S, G_DEBUG, G_WARNING, G_ERROR The debug macro is for debugging during development.
#define G_DEBUG(expr)
#define G_LOG(expr)   G_LOG_OUTPUT( expr , G::Log::s_LogVerbose )
#define G_LOG_S(expr)   G_LOG_OUTPUT( expr , G::Log::s_LogSummary )
#define G_WARNING(expr)   G_LOG_OUTPUT( expr , G::Log::s_Warning )
#define G_ERROR(expr)   G_LOG_OUTPUT( expr , G::Log::s_Error )


Detailed Description

Definition in file glog.h.


Define Documentation

#define G_DEBUG ( expr   ) 

Definition at line 95 of file glog.h.

Referenced by GNet::StreamSocket::accept(), GNet::EventHandlerList::add(), GNet::Socket::addExceptionHandler(), GNet::Socket::addReadHandler(), GSmtp::ProtocolMessageStore::addReceived(), GSmtp::ProtocolMessageStore::addTo(), GNet::Socket::addWriteHandler(), GSmtp::AdminServer::AdminServer(), GSmtp::SaslServer::apply(), GPop::AuthImp::authenticated(), GNet::Socket::bind(), GSmtp::ProtocolMessageStore::clear(), GSmtp::SaslServerImp::clientResponse(), GNet::Socket::connect(), GNet::SimpleClient::connect(), GNet::Local::domainname(), GNet::TimerList::doTimeouts(), GPop::StoreLock::get(), GSmtp::SecretsImp::id(), GNet::Server::init(), GSmtp::SaslServer::init(), GPop::AuthImp::init(), G::File::mkdirs(), GSmtp::NetworkVerifier::NetworkVerifier(), GSmtp::AdminServer::notify(), GSmtp::SpamClient::onConnect(), GSmtp::Client::onConnect(), GSmtp::RequestClient::onConnect(), GNet::ResolverImp::onData(), GSmtp::Client::onDelete(), GNet::ServerPeer::onException(), GSmtp::Client::onReceive(), GSmtp::RequestClient::onReceive(), GSmtp::ServerProtocol::onTimeoutException(), GSmtp::StoredFile::openContent(), GSmtp::FactoryParser::parse(), G::Pipe::Pipe(), GSmtp::SaslClient::preferred(), GSmtp::ProtocolMessageStore::process(), GSmtp::ProtocolMessageForward::processDone(), GNet::StreamSocket::read(), GNet::SocketProtocolImp::readEvent(), GNet::Server::readEvent(), GNet::EventHandler::readEvent(), GNet::Socket::reason(), G::File::remove(), GNet::EventHandlerList::remove(), G::File::rename(), GSmtp::SpamClient::request(), GSmtp::RequestClient::request(), GSmtp::RequestClient::RequestClient(), GSmtp::ProtocolMessageStore::reset(), GPop::ServerProtocol::resume(), GSmtp::SaslClient::SaslClient(), GSmtp::SecretsImp::SecretsImp(), GNet::ServerPeer::ServerPeer(), GSmtp::ProtocolMessageStore::setFrom(), GNet::SimpleClient::SimpleClient(), GNet::Socket::Socket(), GSmtp::SpamClient::SpamClient(), GNet::SocketProtocolImp::sslAccept(), GNet::SocketProtocolImp::sslConnect(), GSmtp::ClientProtocol::start(), GSmtp::StoredFile::StoredFile(), GSmtp::SaslServer::trusted(), GSmtp::SaslServerImp::trusted(), GSmtp::SaslServerImp::trustedCore(), GSmtp::AdminServer::unregister(), GNet::TimerList::update(), GSmtp::FileStore::updated(), GNet::SimpleClient::updateResolverInfo(), GSmtp::SaslServerImp::validate(), GSmtp::ExecutableVerifier::verify(), GNet::DatagramSocket::write(), GNet::Socket::write(), GNet::SocketProtocolImp::writeEvent(), GNet::SimpleClient::writeEvent(), GNet::Server::writeEvent(), GNet::EventHandler::writeEvent(), GSmtp::NewFile::~NewFile(), and GNet::ServerPeer::~ServerPeer().

#define G_ERROR ( expr   )     G_LOG_OUTPUT( expr , G::Log::s_Error )

#define G_LOG ( expr   )     G_LOG_OUTPUT( expr , G::Log::s_LogVerbose )

#define G_LOG_OUTPUT ( expr,
severity   )     do { G::Log(severity,__FILE__,__LINE__) << expr ; } while(0)

Macros: G_LOG, G_LOG_S, G_DEBUG, G_WARNING, G_ERROR The debug macro is for debugging during development.

The log macro is used for progress logging, typically in long-lived server processes. The warning and error macros are used for error warning/error messages. In programs where logging can be disabled completely (see LogOutput) then warning/error messages should also get raised by some another independent means.

Definition at line 91 of file glog.h.

#define G_LOG_S ( expr   )     G_LOG_OUTPUT( expr , G::Log::s_LogSummary )

#define G_WARNING ( expr   )     G_LOG_OUTPUT( expr , G::Log::s_Warning )


Generated on Fri Apr 18 15:56:12 2008 for E-MailRelay by  doxygen 1.5.5