NEST main@caf0ae8
 
Loading...
Searching...
No Matches
logging.h
Go to the documentation of this file.
1/*
2 * logging.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#ifndef LOGGING_H
24#define LOGGING_H
25
29#define LOG( s, fctn, msg ) nest::kernel().logging_manager.publish_log( ( s ), ( fctn ), ( msg ), __FILE__, __LINE__ )
30
31
32namespace nest
33{
34
35class LoggingEvent;
36class LoggingDeliverer;
37
40{
41 ALL = 0,
42 DEBUG = 5,
43 STATUS = 7,
44 INFO = 10,
45 PROGRESS = 15,
46 DEPRECATED = 18,
47 WARNING = 20,
48 ERROR = 30,
49 FATAL = 40,
50 QUIET = 100
51};
52
53typedef void ( *deliver_logging_event_ptr )( const LoggingEvent& e );
54}
55
56#endif
Definition logging_event.h:38
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33
void(* deliver_logging_event_ptr)(const LoggingEvent &e)
Definition logging.h:53
VerbosityLevel
Report only messages at levels higher than chosen level to user or logs. Default INFO.
Definition logging.h:40
@ ALL
Definition nest_types.h:169