From 316b3823305ef14748ecba56de09c35b2d2a97c0 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 1 Sep 2013 22:43:01 +0100 Subject: [PATCH] Added log calls to examples --- RubyTest.rb | 4 ++++ python-test.py | 4 ++++ test-c-plugin/test-c-plugin.c | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/RubyTest.rb b/RubyTest.rb index 0444af4..7f78404 100644 --- a/RubyTest.rb +++ b/RubyTest.rb @@ -8,6 +8,10 @@ module RubyTest def self.prof_on_start() Prof::cons_show("RubyTest: on_start") + Prof::log_debug("RubyTest: logged debug"); + Prof::log_info("RubyTest: logged info"); + Prof::log_warning("RubyTest: logged warning"); + Prof::log_error("RubyTest: logged error"); end def self.prof_on_connect(account_name, fulljid) diff --git a/python-test.py b/python-test.py index 97fd979..e5dd681 100644 --- a/python-test.py +++ b/python-test.py @@ -7,6 +7,10 @@ def prof_init(version, status): def prof_on_start(): prof.cons_show("python-test: on_start") + prof.log_debug("python-test: logged debug"); + prof.log_info("python-test: logged info"); + prof.log_warning("python-test: logged warning"); + prof.log_error("python-test: logged error"); def prof_on_connect(account_name, fulljid): prof.cons_show("python-test: on_connect, " + account_name + ", " + fulljid) diff --git a/test-c-plugin/test-c-plugin.c b/test-c-plugin/test-c-plugin.c index 852fcb3..9d69e5f 100644 --- a/test-c-plugin/test-c-plugin.c +++ b/test-c-plugin/test-c-plugin.c @@ -51,6 +51,10 @@ void prof_on_start(void) { prof_cons_show("c-test: on_start"); + prof_log_debug("c-test: logged debug"); + prof_log_info("c-test: logged info"); + prof_log_warning("c-test: logged warning"); + prof_log_error("c-test: logged error"); } void