Added log calls to examples
This commit is contained in:
@@ -8,6 +8,10 @@ module RubyTest
|
|||||||
|
|
||||||
def self.prof_on_start()
|
def self.prof_on_start()
|
||||||
Prof::cons_show("RubyTest: 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
|
end
|
||||||
|
|
||||||
def self.prof_on_connect(account_name, fulljid)
|
def self.prof_on_connect(account_name, fulljid)
|
||||||
|
|||||||
@@ -7,6 +7,10 @@ def prof_init(version, status):
|
|||||||
|
|
||||||
def prof_on_start():
|
def prof_on_start():
|
||||||
prof.cons_show("python-test: 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):
|
def prof_on_connect(account_name, fulljid):
|
||||||
prof.cons_show("python-test: on_connect, " + account_name + ", " + fulljid)
|
prof.cons_show("python-test: on_connect, " + account_name + ", " + fulljid)
|
||||||
|
|||||||
@@ -51,6 +51,10 @@ void
|
|||||||
prof_on_start(void)
|
prof_on_start(void)
|
||||||
{
|
{
|
||||||
prof_cons_show("c-test: on_start");
|
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
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user