NEST main@caf0ae8
 
Loading...
Searching...
No Matches
logging_event.h
Go to the documentation of this file.
1/*
2 * logging_event.h
3 *
4 * This file is part of NEST.
5 *
6 * Copyright (C) 2004 The NEST Initiative
7 *
8 * NEST is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * NEST is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with NEST. If not, see <http://www.gnu.org/licenses/>.
20 *
21 */
22
23
24#ifndef LOGGING_EVENT_H
25#define LOGGING_EVENT_H
26
27// C++ includes:
28#include <ostream>
29#include <string>
30
31// Includes from libnestutil:
32#include "logging.h"
33
34namespace nest
35{
36
38{
39public:
41 const std::string& fctn,
42 const std::string& msg,
43 const std::string& file = "none",
44 const size_t line = 0 );
45
46 friend std::ostream& operator<<( std::ostream&, const LoggingEvent& );
47
49
50public:
51 const std::string& message;
52 const std::string& function;
54 const time_t time_stamp;
55 const std::string& file_name;
56 const size_t line_number;
57};
58
59} // namespace nest
60
61#endif // ifndef LOGGING_EVENT_H
Definition logging_event.h:38
const VerbosityLevel severity
Definition logging_event.h:53
const std::string & function
Definition logging_event.h:52
friend std::ostream & operator<<(std::ostream &, const LoggingEvent &)
Definition logging_event.cpp:58
const std::string & message
Definition logging_event.h:51
const size_t line_number
Definition logging_event.h:56
VerbosityLevel nest_verbosity_level() const
Definition logging_event.cpp:50
const time_t time_stamp
Definition logging_event.h:54
const std::string & file_name
Definition logging_event.h:55
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33
VerbosityLevel
Report only messages at levels higher than chosen level to user or logs. Default INFO.
Definition logging.h:40