Class LogUtil


  • public final class LogUtil
    extends java.lang.Object
    Convenient wrapper for LogChute functions. This implements the RuntimeLogger methods (and then some). It is hoped that use of this will fully replace use of the RuntimeLogger.
    Since:
    1.5
    Version:
    $Id: Log.java 724825 2008-12-09 18:56:06Z nbubna $
    Author:
    Nathan Bubna
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String formatFileString​(java.lang.String template, int linenum, int colnum)
      Simply creates a string that formats the template filename with line number and column.
      static java.lang.String formatFileString​(AbstractVmNode node)
      Creates a string that formats the template filename with line number and column of the given Node.
      static java.lang.String formatFileString​(Directive directive)
      Creates a string that formats the template filename with line number and column of the given Directive.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • formatFileString

        public static java.lang.String formatFileString​(Directive directive)
        Creates a string that formats the template filename with line number and column of the given Directive. We use this routine to provide a cosistent format for displaying file errors.
      • formatFileString

        public static java.lang.String formatFileString​(AbstractVmNode node)
        Creates a string that formats the template filename with line number and column of the given Node. We use this routine to provide a cosistent format for displaying file errors.
      • formatFileString

        public static java.lang.String formatFileString​(java.lang.String template,
                                                        int linenum,
                                                        int colnum)
        Simply creates a string that formats the template filename with line number and column. We use this routine to provide a cosistent format for displaying file errors.
        Parameters:
        template - File name of template, can be null
        linenum - Line number within the file
        colnum - Column number withing the file at linenum