Added log calls to examples

This commit is contained in:
James Booth
2013-09-01 22:43:01 +01:00
parent d07ccd4b5b
commit 316b382330
3 changed files with 12 additions and 0 deletions

View File

@@ -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)

View File

@@ -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)

View File

@@ -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