[yast-devel] Added Y2Logger in yast2-ruby-bindings-3.1.7
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/5497c0c942bed00996f57029ea8... -- Ladislav Slezák Appliance department / YaST Developer Lihovarská 1060/12 190 00 Prague 9 / Czech Republic tel: +420 284 028 960 lslezak@suse.com SUSE -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org
participants (1)
-
Ladislav Slezak