Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Problems reading log files


Message #1 by "Elildo Mancebo Reis" <lists@a...> on Fri, 28 Feb 2003 08:34:17 -0300
Hi, all!

I'm trying to build an ASP page to get statistics information, by reading
log files, but I got some problems...

Set oLog = server.CreateObject("MSWC.IISLog") is ok but...

oLog.OpenLogFile didn't work. Well, I know it's MY mistake, and if some of
you can guide me to the "road" again I wuold apreciate.

What is the sintax for...

oLog.OpenLogFile .....

I tried "ex030227.log, ForReading, W3SVC, 1, 0"

Thanks in advance


Message #2 by "Gerhard Wentink" <gerhard@d...> on Fri, 28 Feb 2003 13:05:56 +0100
This is what I found in the IIS 5.1 Platform SDK:

OIISLog.OpenLogFile( FileName, IOMode, ServiceName, ServiceInstance,
OutputLogFileFormat )
In your case something like:
oLog.OpenLogFile "ex030227", 1, "W3SVC", 1, "W3C Extended Log File
Format"

There was also a command about the log file formats (the last
parameter):
'Log file formats:
'  "NCSA Common Log File Format"
'  "Microsoft IIS Log File Format"
'  "W3C Extended Log File Format"

Regards,

Gerhard Wentink

-----Oorspronkelijk bericht-----
Van: Elildo Mancebo Reis [mailto:lists@a...] 
Verzonden: vrijdag 28 februari 2003 12:34
Aan: ASP Web HowTo
Onderwerp: [asp_web_howto] Problems reading log files


Hi, all!

I'm trying to build an ASP page to get statistics information, by
reading log files, but I got some problems...

Set oLog = server.CreateObject("MSWC.IISLog") is ok but...

oLog.OpenLogFile didn't work. Well, I know it's MY mistake, and if some
of you can guide me to the "road" again I wuold apreciate.

What is the sintax for...

oLog.OpenLogFile .....

I tried "ex030227.log, ForReading, W3SVC, 1, 0"

Thanks in advance





  Return to Index