close this window


Logging

bwsmain.gif - 4kb

The window of the WebServUSB program contains 2 main sections (HTTP Server & FTP Server). Each section is viewed by clicking its tab. As the server is active everything that happens is logged in its respective window.

There are two types of log files that are created:

The Access Log File
The Access Log basically dumps the HTTP window log to a file. This will show what remote users have viewed what web content and what type of web browser they used, etc. The file is output in CLF (Common Log Format). To enable access logging, you check 'Log to File' and give it a filename. If the file doesn't exist, WebServUSB will create one. If the filename does exist, WebServUSB will append new log info to the end of it.

The Error Log File
Error logging is a little different. There isn't a "standard" for error logging. This option mostly to helps in debugging other peoples problems with WebServUSB. Error Logging can be turned on and it sends info to the error log.

CAUTION: Leaving logging enabled can fill up your WebServUSB! Don't leave it enabled unless you are troubleshooting problems and are watching for available disk space!

Then you can read the log to see what the web server was doing when it had problems. You can view logs with Notepad or a log viewer program.

The "Log Level" determines how much info ends up in the log file. They range from LOG_NONE, where nothing gets written to the log, to LOG_ALL, where LOTS of info gets dumped.

The other levels specify what level of logging. If you only want fatal errors logged, set it to LOG_FATAL, if you want more detail on what webweaver is doing, set it to LOG_INFO. In general the closer to LOG_ALL you are the more information that will be written to the file. Typically you won't want to set it to high, or webweaver will spent a fair amount of time writing to files.

Either LOG_ERR, or LOG_WARNING is enough detail for most users.

"PrefixTimeStamp" just puts a timestamp on the front of each log entry so you can see how long each event took.

"Prefix Log Level" writes the log level that the event was written at. So if you have lots of events in the log, you can quickly see if it was a LOG_FATAL, or a LOG_DEBUG message.

We recommend creating two empty files with Notepad: 'httplog.log' and 'error.log' first. Then WebServUSB will pick these up as it runs.


close this window