Update of /cvsroot/naviserver/naviserver/nslog
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12496/nslog
Modified Files:
nslog.c
Log Message:
Untabified, reformatted, improved comments.
LogObjCmd: rewritten with Tcl_Obj interface and using TclVFS wrappers
for handling files.
Proper locking when accessing the Log structure elements in the LogObjCmd.
Index: nslog.c
===================================================================
RCS file: /cvsroot/naviserver/naviserver/nslog/nslog.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** nslog.c 30 Jul 2005 04:27:41 -0000 1.10
--- nslog.c 5 Oct 2005 09:40:33 -0000 1.11
***************
*** 32,94 ****
* nslog.c --
*
! * This file implements the access log using NCSA Common Log format.
*
*
- * The nslog module implements Common Log Format access logging. This
- * format can be used by any web analyzer tool. It optionally supports
- * NCSA Combined Log Format and supports log file rolling. The log files
- * are stored in the server/server1/modules/nslog directory or can be
- * specified in the config file.
[...1581 lines suppressed...]
*** 809,812 ****
LogRollCallback(void *arg)
{
! LogCallback(LogRoll,arg,"roll");
}
--- 951,964 ----
LogRollCallback(void *arg)
{
! LogCallback(LogRoll, arg, "roll");
! }
!
! static int
! AddCmds(Tcl_Interp *interp, void *arg)
! {
! Tcl_Command cmd;
!
! cmd = Tcl_CreateObjCommand(interp, "ns_accesslog", LogObjCmd, arg, NULL);
!
! return (cmd != NULL) ? TCL_OK : TCL_ERROR;
}
|