windows-nt/Source/XPSP1/NT/inetsrv/iis/ui/itools/convlog/nocnvlin.c

46 lines
1.2 KiB
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
#include "convlog.h"
// Process a line with no Format Conversion.
VOID
ProcessNoConvertLine(
IN LPINLOGLINE lpLogLine,
IN LPCSTR szInFileName,
IN LPTSTR pszBuf,
IN LPOUTFILESTATUS lpOutFile,
BOOL *lpbNCFileOpen
)
{
if (!(*lpbNCFileOpen)) {
lpOutFile->fpOutFile = StartNewOutputDumpLog (
lpOutFile,
szInFileName,
NoFormatConversion ? ".dns" : ".dmp"
);
*lpbNCFileOpen=TRUE;
}
//
// Print all fields of line
//
if ( NoFormatConversion ) {
fprintf(lpOutFile->fpOutFile,"%s",pszBuf);
nWebLineCount++;
} else {
fprintf(lpOutFile->fpOutFile,"%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s,\n",
lpLogLine->szClientIP, lpLogLine->szUserName, lpLogLine->szDate, lpLogLine->szTime,
lpLogLine->szService, lpLogLine->szServerName, lpLogLine->szServerIP, lpLogLine->szProcTime,
lpLogLine->szBytesRec, lpLogLine->szBytesSent, lpLogLine->szServiceStatus, lpLogLine->szWin32Status,
lpLogLine->szOperation, lpLogLine->szTargetURL, lpLogLine->szParameters);
}
}