Class Logging

java.lang.Object
dev.avelar.mapnik.Logging

public final class Logging extends Object
Mapnik's own log, which it writes to the console (standard error) by default. This is process wide. Turn the severity up when a style loads but draws nothing: Mapnik usually says why.
  • Method Details

    • severity

      public static Logging.Severity severity()
      The global severity: messages below it are dropped.
    • setSeverity

      public static void setSeverity(Logging.Severity severity)
    • severity

      public static Logging.Severity severity(String object)
      The severity for one named part of Mapnik, such as load_map. Falls back to the global one.
    • setSeverity

      public static void setSeverity(String object, Logging.Severity severity)
    • clearObjectSeverities

      public static void clearObjectSeverities()
      Forget every per-object severity set with setSeverity(String, Severity).
    • format

      public static String format()
      The line format, which uses %Y-%m-%d %H:%M:%S style time codes.
    • setFormat

      public static void setFormat(String format)
    • toFile

      public static void toFile(Path file)
      Write the log to a file instead of the console.
    • toConsole

      public static void toConsole()
      Write the log to the console again. Also closes the file from toFile(java.nio.file.Path), so its text is complete.