Mailinglist Archive: yast-devel (53 mails)

< Previous Next >
[yast-devel] Added Y2Logger in yast2-ruby-bindings-3.1.7
  • From: Ladislav Slezak <lslezak@xxxxxxx>
  • Date: Tue, 04 Feb 2014 09:52:38 +0100
  • Message-id: <52F0AA56.10303@suse.cz>


Hi all,

Yesterday I added a new Y2Logger class into yast2-ruby-bindings.

It basically wraps Yast logging builtins (Builtins.y2debug(),
/Builtins.y2milestone(), ...) in a Ruby standard Logger object.

The purpose is to pass it to external libraries which then use the standard Ruby
logging to write into y2log (/var/log/YaST2/y2log).

Currently it is used in the registration module which uses rubygem-scc_api for
communication with SCC server. The scc_api gem then logs into y2log using the
standard Yast format (that's is nice for debugging).

See
https://github.com/yast/yast-registration/commit/5497c0c942bed00996f57029ea85437a948ed753#diff-10fd72d29294370773d49226a6b02eefR43



--

Ladislav Slez√°k
Appliance department / YaST Developer
Lihovarsk√° 1060/12
190 00 Prague 9 / Czech Republic
tel: +420 284 028 960
lslezak@xxxxxxxx
SUSE
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: yast-devel+owner@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages