Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
JLogger.hh
Go to the documentation of this file.
1#ifndef __JLOGGER__
2#define __JLOGGER__
3
4#include <string>
5#include <JLang/JMutex.hh>
6
7/**
8 * \author mdejong
9 */
10
11namespace JLOGGER {}
12namespace JPP { using namespace JLOGGER; }
13
14/**
15 * Message logging.
16 */
17namespace JLOGGER {
18
19 /**
20 * Interface for logging messages.
21 */
22 class JLogger {
23 public:
24 /**
25 * Virtual destructor.
26 */
27 virtual ~JLogger()
28 {}
29
30 /**
31 * Report message
32 *
33 * \param tag tag
34 * \param message message
35 */
36 virtual void typeout(const std::string& tag,
37 const std::string& message) = 0;
38
39 /**
40 * Provides internal lock object.
41 *
42 * \return reference to the internal mutex object.
43 */
45 {
46 return m_mutex;
47 }
48
49 private:
50
52 };
53}
54
55#endif
Very basic lock facilities to be used in multithreaded programs.
Interface for logging messages.
Definition JLogger.hh:22
virtual ~JLogger()
Virtual destructor.
Definition JLogger.hh:27
JSYNCHRONIZATION::JMutex m_mutex
Definition JLogger.hh:51
JSYNCHRONIZATION::JMutex & mutex()
Provides internal lock object.
Definition JLogger.hh:44
virtual void typeout(const std::string &tag, const std::string &message)=0
Report message.
Message logging.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).