net: udp sending data routine
[quarnos.git] / services / early_logger.h
blob966f8ceab18df8820da6c81905f8e09938569626
1 /* Quarn OS
3 * Early logger
5 * Copyright (C) 2008-2009 Pawel Dziepak
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.
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.
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.
23 /* Interface of a logger that can be used immediately after booting kernel.
24 * It does not uses any high-level kernel structures and objects, so it can be
25 * a good way to inform about their corruption. However it is not reccomended
26 * to use it after setting up "standard" tty logger.
29 #ifndef _EARLY_LOGGER_H_
30 #define _EARLY_LOGGER_H_
32 #include "libs/stream.h"
34 #include "logger.h"
36 namespace services {
37 class early_logger : public logger {
38 private:
39 p<resources::stream> output;
41 public:
42 early_logger();
43 void print(const string&, log_level);
45 static void register_type();
49 #endif