Mente

logging.htm

Application Logging

Logs should be greppable. It should be focused entirely on a single line of log. NEVER over multiple lines.

We want to answer questions such as:

Problems to avoid:

  1. Log is missing necessary information
  2. Log unsuitable for grep because of redundant information (if it mentions a website on every linge we can't find those that were activated by the website)
  3. Information is split across more than one line
  4. Error reported to user but not logged

e.g.,

try