added activity logging
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 6 Jan 2006 23:17:18 +0000 (23:17 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 6 Jan 2006 23:17:18 +0000 (23:17 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2651 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Utils/SpiderMonkey.pm

index c926bdc..f52abd5 100644 (file)
@@ -23,6 +23,7 @@ sub init {
        my $js = JavaScript::SpiderMonkey->new();
        $js->init();
        $js->function_set("perl_print",         sub { print "@_\n"; } );
+       $js->function_set("log_activity",       sub { $logger->activity(@_); return 1;} );
        $js->function_set("log_error",          sub { $logger->error(@_); return 1;} );
        $js->function_set("log_warn",                   sub { $logger->warn(@_); return 1;} );
        $js->function_set("log_info",                   sub { $logger->info(@_); return 1;} );