File: logger.swg

package info (click to toggle)
log4cplus 2.0.8-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,592 kB
  • sloc: cpp: 53,091; sh: 10,537; ansic: 1,845; python: 1,226; perl: 263; makefile: 209; xml: 85; objc: 59
file content (57 lines) | stat: -rwxr-xr-x 1,440 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef LOG4CPLUS_LOGGER_SWG
#define LOG4CPLUS_LOGGER_SWG

%module log4cplus

%{

#include "log4cplus/logger.h"

%}

%include "hierarchy.swg"


namespace log4cplus
{

%rename(assign) Logger::operator =;	
	
class Logger
{
public:
  Logger ();
  Logger (Logger const & other);
  Logger & operator = (Logger const & other);
  virtual ~Logger ();

  void swap (Logger & other);
  Logger getParent () const;

  void assertion (bool assertionVal, log4cplus::tstring const & message) const;
  bool isEnabledFor (LogLevel ll) const;
  void log (LogLevel ll, log4cplus::tstring const & message,
    char const * file = NULL, int line = -1, char const * function = NULL)
    const;
  void log (spi::InternalLoggingEvent const & event) const;
  void forcedLog (LogLevel ll, log4cplus::tstring const & message,
    char const * file = NULL, int line = -1, char const * function = NULL)
    const;
  void forcedLog (spi::InternalLoggingEvent const & event) const;
  LogLevel getChainedLogLevel () const;
  LogLevel getLogLevel () const;
  void setLogLevel (LogLevel ll);
  log4cplus::tstring const & getName () const;
  bool getAdditivity () const;
  void setAdditivity (bool additive);

  static Hierarchy & getDefaultHierarchy ();
  static bool exists (log4cplus::tstring const & loggerName);
  static Logger getInstance (log4cplus::tstring const & loggerName);
  static Logger getRoot ();  
};

} // namespace Logger

#endif // LOG4CPLUS_LOGGER_SWG