Logging in WebObjects

In this section, we'll look at performing some basic logging for a WebObjects application. In particular, we'll look at logging information of user logins for the online forum application as well as at Web server logging and statistics gathering for WebObjects applications.

Logging User Logins to a CLFF File

In many applications it might be useful to maintain a log of attempted logins to an application. Again, it isn't particularly important to manage or maintain user logins to an online forum. However, it might be relevant to some.

To enable logging you must set up a log file for use by the application. The directory /Library/WebObjects/ might be a suitable place to set up a Logs directory.

From the Terminal command line ...

Get WebObjects® Developer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.