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