sbuild
1.7.1
Main Page
Related Pages
Namespaces
Classes
Files
File List
lib
sbuild
log.h
1
/* Copyright © 2005-2013 Roger Leigh <rleigh@debian.org>
2
*
3
* schroot is free software: you can redistribute it and/or modify it
4
* under the terms of the GNU General Public License as published by
5
* the Free Software Foundation, either version 3 of the License, or
6
* (at your option) any later version.
7
*
8
* schroot is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
* General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see
15
* <http://www.gnu.org/licenses/>.
16
*
17
*********************************************************************/
18
19
#ifndef SBUILD_LOG_H
20
#define SBUILD_LOG_H
21
22
#include <ostream>
23
24
namespace
sbuild
25
{
26
28
enum
debug_level
29
{
30
DEBUG_NONE
= -1,
31
DEBUG_NOTICE
= 1,
32
DEBUG_INFO
= 2,
33
DEBUG_WARNING
= 3,
34
DEBUG_CRITICAL
= 4
35
};
36
42
std::ostream&
43
log_info
();
44
50
std::ostream&
51
log_warning
();
52
58
std::ostream&
59
log_error
();
60
69
std::ostream&
70
log_debug
(
debug_level
level);
71
77
std::ostream&
78
log_ctty_info
();
79
85
std::ostream&
86
log_ctty_warning
();
87
93
std::ostream&
94
log_ctty_error
();
95
101
void
102
log_exception_warning
(
const
std::exception& e);
103
109
void
110
log_exception_error
(
const
std::exception& e);
111
117
void
118
log_ctty_exception_warning
(
const
std::exception& e);
119
125
void
126
log_ctty_exception_error
(
const
std::exception& e);
127
131
void
132
log_unknown_exception_error
();
133
135
extern
debug_level
debug_log_level
;
136
137
}
138
139
#endif
/* SBUILD_LOG_H */
140
141
/*
142
* Local Variables:
143
* mode:C++
144
* End:
145
*/
Generated on Wed Oct 2 2013 10:21:07 for sbuild by
1.8.4