org.olat.core.logging
Class LogFile

java.lang.Object
  extended by org.olat.core.logging.LogFile

public class LogFile
extends java.lang.Object

Description: logfile handling

Author:
Sabina Jeger

Constructor Summary
LogFile()
          Constructor for LogFile
 
Method Summary
 java.util.Collection getError(java.lang.String s, java.lang.String dd, java.lang.String mm, java.lang.String yyyy, boolean asHTML)
          looks through the logfile
 VFSLeaf getLogfilePath(java.util.Date date)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogFile

public LogFile()
Constructor for LogFile

Method Detail

getLogfilePath

public VFSLeaf getLogfilePath(java.util.Date date)
Parameters:
date - the date of the log to retrieve, or null when no date suffix should be appended (= take today's log)
Returns:
the VFSLeaf of the Logfile given the Date, or null if no such file could be found

getError

public java.util.Collection getError(java.lang.String s,
                                     java.lang.String dd,
                                     java.lang.String mm,
                                     java.lang.String yyyy,
                                     boolean asHTML)
looks through the logfile

Parameters:
s -
dd - requested day
mm - requested month
yyyy - requested yyyy
Returns:
the first found errormessage