00001
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00033
00034 #ifndef GROOVX_TCL_TCLPKG_LOG_CC_UTC20050628161246_DEFINED
00035 #define GROOVX_TCL_TCLPKG_LOG_CC_UTC20050628161246_DEFINED
00036
00037 #include "tcl/tclpkg-log.h"
00038
00039 #include "nub/log.h"
00040
00041 #include "tcl/pkg.h"
00042
00043 #include "rutz/fstring.h"
00044
00045 #include "rutz/debug.h"
00046 GVX_DBG_REGISTER
00047 #include "rutz/trace.h"
00048
00049 extern "C"
00050 int Log_Init(Tcl_Interp* interp)
00051 {
00052 GVX_TRACE("Log_Init");
00053
00054 GVX_PKG_CREATE(pkg, interp, "log", "4.$Revision: 10065 $");
00055 pkg->def("reset", "", &nub::logging::reset, SRC_POS);
00056 pkg->def("add_scope", "scopename", &::nub::logging::add_scope, SRC_POS);
00057 pkg->def("remove_scope", "scopename", &::nub::logging::remove_scope, SRC_POS);
00058 pkg->def("filename", "filename", &nub::logging::set_log_filename, SRC_POS);
00059 pkg->def("copy_to_stdout", "shouldcopy", &nub::logging::copy_to_stdout, SRC_POS);
00060
00061 pkg->def("log", "msg", (void (*)(const char*)) &nub::log, SRC_POS);
00062
00063 GVX_PKG_RETURN(pkg);
00064 }
00065
00066 static const char __attribute__((used)) vcid_groovx_tcl_tclpkg_log_cc_utc20050628161246[] = "$Id: tclpkg-log.cc 10065 2007-04-12 05:54:56Z rjpeters $ $HeadURL: file:
00067 #endif // !GROOVX_TCL_TCLPKG_LOG_CC_UTC20050628161246_DEFINED