17 #ifndef _DECAF_UTIL_LOGGING_LOGGER_H_ 18 #define _DECAF_UTIL_LOGGING_LOGGER_H_ 96 std::list<Handler*> handlers;
105 bool useParentHandlers;
126 Logger(
const std::string& name );
159 this->parent = parent;
178 void addHandler(
Handler* handler );
188 void removeHandler(
Handler* handler );
195 const std::list<Handler*>& getHandlers()
const;
208 void setFilter(
Filter* filter );
252 return useParentHandlers;
265 this->useParentHandlers = value;
283 virtual void entering(
const std::string& blockName,
284 const std::string& file,
300 virtual void exiting(
const std::string& blockName,
301 const std::string& file,
319 virtual void severe(
const std::string& file,
321 const std::string functionName,
322 const std::string& message );
339 virtual void warning(
const std::string& file,
341 const std::string functionName,
342 const std::string& message );
359 virtual void info(
const std::string& file,
361 const std::string functionName,
362 const std::string& message );
379 virtual void debug(
const std::string& file,
381 const std::string functionName,
382 const std::string& message );
399 virtual void config(
const std::string& file,
401 const std::string functionName,
402 const std::string& message );
419 virtual void fine(
const std::string& file,
421 const std::string functionName,
422 const std::string& message );
439 virtual void finer(
const std::string& file,
441 const std::string functionName,
442 const std::string& message );
459 virtual void finest(
const std::string& file,
461 const std::string functionName,
462 const std::string& message );
483 virtual void throwing(
const std::string& file,
485 const std::string functionName,
495 virtual bool isLoggable(
const Level& level )
const;
515 virtual void log(
const Level& level,
const std::string& message );
529 virtual void log(
const Level& levels,
530 const std::string& file,
532 const std::string& message, ... );
549 virtual void log(
const Level& level,
550 const std::string& file,
552 const std::string& message,
571 static Logger* getAnonymousLogger();
588 static Logger* getLogger(
const std::string& name );
This class represents an error that has occurred.
Definition: Throwable.h:44
The Level class defines a set of standard logging levels that can be used to control logging output...
Definition: Level.h:56
void setParent(Logger *parent)
Set the parent for this Logger.
Definition: Logger.h:158
A Logger object is used to log messages for a specific system or application component.
Definition: Logger.h:86
LogRecord objects are used to pass logging requests between the logging framework and individual log ...
Definition: LogRecord.h:41
A Filter can be used to provide fine grain control over what is logged, beyond the control provided b...
Definition: Filter.h:35
void setUseParentHandlers(bool value)
Specify whether or not this logger should send its output to it's parent Logger.
Definition: Logger.h:264
A Handler object takes log messages from a Logger and exports them.
Definition: Handler.h:49
Logger * getParent() const
Gets the parent of this Logger which will be the nearest existing Logger in this Loggers namespace...
Definition: Logger.h:148
void setLevel(const Level &level)
Set the log level specifying which message levels will be logged by this logger.
Definition: Logger.h:242
#define DECAF_API
Definition: Config.h:29
Level getLevel() const
Get the log Level that has been specified for this Logger.
Definition: Logger.h:225
bool getUseParentHandlers() const
Discover whether or not this logger is sending its output to its parent logger.
Definition: Logger.h:251
Definition: Exception.h:38
const std::string & getName() const
Gets the name of this Logger.
Definition: Logger.h:136
const Filter * getFilter() const
Gets the Filter object that this class is using.
Definition: Logger.h:214
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: AprPool.h:25