org.vladnput
Class VladLogger

java.lang.Object
  extended by org.vladnput.VladLogger

public class VladLogger
extends java.lang.Object

This class logs all requests and request parameters that are in violation of the security policy defined by a Vlad configuration. These errors are logged with Log4j and sent to the logger named org.vladnput.VladLogger at a warn level. The exact format of the log messages will depend on your local Log4j configuration, but the log messages generated are in the following format: [Client IP] [URL] [Param] [Param Value] [Generic Message] [Detail Message 1] [Detail Message 2] ... There may not be any detail messages. Instances of this class are thread safe.

Author:
Patrick Higgins

Constructor Summary
VladLogger()
           
 
Method Summary
 void logErrors(VladErrors errors)
          Logs errors to the Log4j logger.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VladLogger

public VladLogger()
Method Detail

logErrors

public void logErrors(VladErrors errors)
Logs errors to the Log4j logger. Does not log any errors that have already been logged VladError.getMaxLog() times.

Parameters:
errors - The errors to log


Copyright © 2009 Patrick Higgins. All Rights Reserved.