Class ::xo::db::sql::acs_log (public)
::xo::db::Class ::xo::db::sql::acs_log
- Testcases:
- No testcase defined.
Source code: namespace eval ::xo::db::sql {} ::nsf::object::alloc ::xo::db::Class ::xo::db::sql::acs_log {set :__default_metaclass ::xotcl::Class set :__default_superclass ::xotcl::Object set :abstract_p f set :auto_save false set :name_method {} set :object_type ::xo::db::sql::acs_log set :security_inherit_p t set :sql_package_name acs_log set :supertype acs_object set :with_table true} ::xo::db::sql::acs_log proc warn {{-dbn {}} -log_key:required -message:required} { #function_args: {LOG_KEY {}} {MESSAGE {}} foreach var [list LOG_KEY MESSAGE] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select acs_log__warn($_LOG_KEY, $_MESSAGE) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] } } ::xo::db::sql::acs_log proc error {{-dbn {}} -log_key:required -message:required} { #function_args: {LOG_KEY {}} {MESSAGE {}} foreach var [list LOG_KEY MESSAGE] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select acs_log__error($_LOG_KEY, $_MESSAGE) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] } } ::xo::db::sql::acs_log proc notice {{-dbn {}} -log_key:required -message:required} { #function_args: {LOG_KEY {}} {MESSAGE {}} foreach var [list LOG_KEY MESSAGE] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select acs_log__notice($_LOG_KEY, $_MESSAGE) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] } } ::xo::db::sql::acs_log proc debug {{-dbn {}} -log_key:required -message:required} { #function_args: {LOG_KEY {}} {MESSAGE {}} foreach var [list LOG_KEY MESSAGE] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select acs_log__debug($_LOG_KEY, $_MESSAGE) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] } }XQL Not present: Generic, PostgreSQL, Oracle