activemq-cpp-3.8.2
SimpleLogger.h
Go to the documentation of this file.
1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 #ifndef _DECAF_UTIL_LOGGING_SIMPLELOGGER_H_
18 #define _DECAF_UTIL_LOGGING_SIMPLELOGGER_H_
19 
20 #include <string>
21 #include <decaf/util/Config.h>
22 
23 namespace decaf{
24 namespace util{
25 namespace logging{
26 
28  {
29  public:
30 
34  SimpleLogger( const std::string& name );
35 
39  virtual ~SimpleLogger();
40 
44  virtual void mark(const std::string& message);
45 
49  virtual void debug(const std::string& file,
50  const int line,
51  const std::string& message);
52 
56  virtual void info(const std::string& file,
57  const int line,
58  const std::string& message);
59 
63  virtual void warn(const std::string& file,
64  const int line,
65  const std::string& message);
66 
70  virtual void error(const std::string& file,
71  const int line,
72  const std::string& message);
73 
77  virtual void fatal(const std::string& file,
78  const int line,
79  const std::string& message);
80 
84  virtual void log(const std::string& message);
85 
86  private:
87 
88  // Name of this Logger
89  std::string name;
90 
91  };
92 
93 }}}
94 
95 #endif /*_DECAF_UTIL_LOGGING_SIMPLELOGGER_H_*/
Definition: SimpleLogger.h:27
#define DECAF_API
Definition: Config.h:29
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: AprPool.h:25