Package org.olat.core.logging

Examples of org.olat.core.logging.LogFile


            IdentityManager im = (IdentityManager)CoreSpringFactory.getBean("core.id.IdentityManager");
      Identity ident = im.findIdentityByName(username);
      //if null, user may crashed befor getting a valid session, try with guest user instead
      if (ident == null) ident = im.findIdentityByName("guest");
      Emailer emailer = new Emailer(ident, true);
      LogFile lf = new LogFile();
      Date d = new Date();
      SimpleDateFormat year = new SimpleDateFormat("yyyy");
      SimpleDateFormat month = new SimpleDateFormat("MM");
      SimpleDateFormat day = new SimpleDateFormat("dd");
      String errorNum = parseErrorNumber(errorNr);
      Collection logFileEntries = lf.getError(errorNum, day.format(d), month.format(d), year.format(d), false);
      StringBuilder out = new StringBuilder();
      if (logFileEntries != null) {
        for (Iterator iter = logFileEntries.iterator(); iter.hasNext();) {
          out.append((String) iter.next());
        }
View Full Code Here


        err_mm = hreq.getParameter("mymm");
      if (hreq.getParameter("myyyyy") != null)
        err_yyyy = hreq.getParameter("myyyyy");
      if (err_nr != null) {
        myErrors.contextPut("mynr", err_nr);
        LogFile lf = new LogFile();
        myErrors.contextPut("errormsgs", lf.getError(err_nr, err_dd, err_mm, err_yyyy, true));
      }

      myErrors.contextPut("highestError", Tracing.getErrorCount());
      myErrors.contextPut("mydd", err_dd);
      myErrors.contextPut("mymm", err_mm);
View Full Code Here

TOP

Related Classes of org.olat.core.logging.LogFile

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.