LCOV - code coverage report
Current view: top level - src - Logger.h (source / functions) Hit Total Coverage
Test: app.info Lines: 1 1 100.0 %
Date: 2010-12-13 Functions: 1 1 100.0 %
Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : // $Id: Logger.h 6219 2008-10-01 05:39:07Z vern $
       2                 :            : //
       3                 :            : // See the file "COPYING" in the main distribution directory for copyright.
       4                 :            : 
       5                 :            : #ifndef logger_h
       6                 :            : #define logger_h
       7                 :            : 
       8                 :            : #include "util.h"
       9                 :            : #include "Obj.h"
      10                 :            : 
      11                 :            : class BroFile;
      12                 :            : class Func;
      13                 :            : 
      14                 :            : class Logger : public BroObj {
      15                 :            : public:
      16                 :            :         Logger(const char* name, BroFile* f = 0);
      17                 :            :         virtual ~Logger();
      18                 :            : 
      19                 :            :         void Log(const char* msg);
      20                 :            : 
      21                 :          1 :         void SetEnabled(int do_enabled)         { enabled = do_enabled; }
      22                 :            : 
      23                 :            :         void Describe(ODesc* d) const;
      24                 :            : 
      25                 :            : protected:
      26                 :            :         BroFile* f;     // associated file
      27                 :            :         int enabled;    // if true, syslog'ing is done, otherwise just file log
      28                 :            : };
      29                 :            : 
      30                 :            : extern Logger* bro_logger;
      31                 :            : extern Func* alarm_hook;
      32                 :            : 
      33                 :            : #endif

Generated by: LCOV version 1.8