Line data Source code
1 : /*
2 : * Copyright (c) 2013-2019 Made to Order Software Corp. All Rights Reserved
3 : *
4 : * https://snapwebsites.org/project/snaplogger
5 : * contact@m2osw.com
6 : *
7 : * This program is free software; you can redistribute it and/or modify
8 : * it under the terms of the GNU General Public License as published by
9 : * the Free Software Foundation; either version 2 of the License, or
10 : * (at your option) any later version.
11 : *
12 : * This program is distributed in the hope that it will be useful,
13 : * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 : * GNU General Public License for more details.
16 : *
17 : * You should have received a copy of the GNU General Public License along
18 : * with this program; if not, write to the Free Software Foundation, Inc.,
19 : * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 : */
21 :
22 : /** \file
23 : * \brief Trace log diagnostic implementation.
24 : *
25 : * This file declares the trace log functions.
26 : */
27 :
28 :
29 : // self
30 : //
31 : #include "snaplogger/trace_diagnostic.h"
32 :
33 : #include "snaplogger/private_logger.h"
34 :
35 :
36 : // last include
37 : //
38 : #include <snapdev/poison.h>
39 :
40 :
41 :
42 : namespace snaplogger
43 : {
44 :
45 :
46 :
47 0 : void add_trace_diagnostic(std::string const & diagnostic)
48 : {
49 0 : get_private_logger()->add_trace_diagnostic(diagnostic);
50 0 : }
51 :
52 :
53 0 : void clear_trace_diagnostics()
54 : {
55 0 : get_private_logger()->clear_trace_diagnostics();
56 0 : }
57 :
58 :
59 0 : trace_diagnostics_t get_trace_diagnostics()
60 : {
61 0 : return get_private_logger()->get_trace_diagnostics();
62 : }
63 :
64 :
65 :
66 : } // snaplogger namespace
67 : // vim: ts=4 sw=4 et
|