OpFlex Framework  1.7.0
StdOutLogHandler.h
Go to the documentation of this file.
1 /* -*- C++ -*-; c-basic-offset: 4; indent-tabs-mode: nil */
6 /*
7  * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
8  *
9  * This program and the accompanying materials are made available under the
10  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
11  * and is available at http://www.eclipse.org/legal/epl-v10.html
12  */
13 
14 #ifndef OPFLEX_LOGGING_STDOUTLOGHANDLER_H
15 #define OPFLEX_LOGGING_STDOUTLOGHANDLER_H
16 
18 
19 namespace opflex {
20 namespace logging {
21 
26 public:
33  StdOutLogHandler(Level logLevel)
34  __attribute__((no_instrument_function));
35  virtual ~StdOutLogHandler()
36  __attribute__((no_instrument_function));
37 
38  /* see OFLogHandler */
39  virtual void handleMessage(const std::string& file,
40  const int line,
41  const std::string& function,
42  const Level level,
43  const std::string& message)
44  __attribute__((no_instrument_function));
45 };
46 
47 } /* namespace logging */
48 } /* namespace opflex */
49 
50 #endif /* OPFLEX_LOGGING_STDOUTLOGHANDLER_H */
virtual void handleMessage(const std::string &file, const int line, const std::string &function, const Level level, const std::string &message) __attribute__((no_instrument_function))
Process a single log message.
Level
Log levels for OpFlex framework logging.
Definition: OFLogHandler.h:58
Interface definition file for OFLogHandler.
Interface for a log message handler for the OpFlex framework.
Definition: OFLogHandler.h:52
Definition: OFLogHandler.h:20
StdOutLogHandler(Level logLevel) __attribute__((no_instrument_function))
Allocate a log handler that will log any messages with equal or greater severity than the specified l...
An OFLogHandler that simply logs to standard output.
Definition: StdOutLogHandler.h:25