Class LogUtil


  • @Deprecated
    public final class LogUtil
    extends Object
    Deprecated.
    for removal with PMD 7.0.0
    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 Detail

      • formatFileString

        public static String formatFileString​(Directive directive)
        Deprecated.
        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 String formatFileString​(AbstractVmNode node)
        Deprecated.
        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 String formatFileString​(String template,
                                              int linenum,
                                              int colnum)
        Deprecated.
        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