]> icculus.org git repositories - duncan/yast2-ruby-bindings.git/blob - src/ruby/RubyLogger.h
- Lot of fixes and support for the UI!!!
[duncan/yast2-ruby-bindings.git] / src / ruby / RubyLogger.h
1 /*---------------------------------------------------------------------\
2 |                                                                      |
3 |                      __   __    ____ _____ ____                      |
4 |                      \ \ / /_ _/ ___|_   _|___ \                     |
5 |                       \ V / _` \___ \ | |   __) |                    |
6 |                        | | (_| |___) || |  / __/                     |
7 |                        |_|\__,_|____/ |_| |_____|                    |
8 |                                                                      |
9 |                                                                      |
10 | ruby language support                              (C) Novell Inc.   |
11 \----------------------------------------------------------------------/
12
13 Author: Duncan Mac-Vicar <dmacvicar@suse.de>
14
15 This program is free software; you can redistribute it and/or
16 modify it under the terms of the GNU General Public License
17 as published by the Free Software Foundation; either version
18 2 of the License, or (at your option) any later version.
19
20 */
21
22 #ifndef RubyLogger_h
23 #define RubyLogger_h
24
25 #include "ycp/y2log.h"
26
27 /**
28  * @short A class to provide logging for Ruby bindings errors and warning
29  */
30 class RubyLogger : public Logger
31 {
32     static RubyLogger* m_rubylogger;
33
34 public:
35     void error (string message);
36     void warning (string message);
37
38     static RubyLogger* instance ();
39 };
40
41 #endif  // ifndef RubyLogger_h
42
43
44 // EOF