Section
8.1.2
Sub Level
General
The application should support several logging levels for security log entries.
Django

Python's logging module provides five default log levels: DEBUG, INFO, WARNING, ERROR, and CRITICAL and also allows for creating of custom log levels.

Java

In Java, if using Log4J or "java.util.logging.*", you get this functionality for free. Learn the APIs and use them.

Natural Webagent

For logging, consider using Log4Natural.

PHP

Set error_reporting to a minimum of E_ALL (the default is E_ALL ^ E_NOTICE).

E_NOTICE may be useful on development machines while testing applications.

Though you may write your own logging function, the PEAR::Log package provides some nice functionality, including logging levels and log handlers (to file, to database, to e-mail, etc.).