1 /*---------------------------------------------------------------------\
3 | __ __ ____ _____ ____ |
4 | \ \ / /_ _/ ___|_ _|___ \ |
5 | \ V / _` \___ \ | | __) | |
6 | | | (_| |___) || | / __/ |
7 | |_|\__,_|____/ |_| |_____| |
10 | ruby language support (C) Novell Inc. |
11 \----------------------------------------------------------------------/
13 Author: Duncan Mac-Vicar <dmacvicar@suse.de>
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.
22 #include "RubyLogger.h"
23 #include <ycp/ExecutionEnvironment.h>
25 extern ExecutionEnvironment ee;
28 RubyLogger::error (string error_message)
30 y2_logger (LOG_ERROR,"Ruby",ee.filename ().c_str ()
31 ,ee.linenumber (),"","%s", error_message.c_str ());
36 RubyLogger::warning (string warning_message)
38 y2_logger (LOG_ERROR,"Ruby",ee.filename ().c_str ()
39 ,ee.linenumber (),"","%s", warning_message.c_str ());
43 RubyLogger::instance ()
47 m_rubylogger = new RubyLogger ();
52 RubyLogger* RubyLogger::m_rubylogger = NULL;