Package dev.avelar.mapnik
Class Logging
java.lang.Object
dev.avelar.mapnik.Logging
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.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic voidForget every per-object severity set withsetSeverity(String, Severity).static Stringformat()The line format, which uses%Y-%m-%d %H:%M:%Sstyle time codes.static voidstatic voidsetSeverity(Logging.Severity severity) static voidsetSeverity(String object, Logging.Severity severity) static Logging.Severityseverity()The global severity: messages below it are dropped.static Logging.SeverityThe severity for one named part of Mapnik, such asload_map.static voidWrite the log to the console again.static voidWrite the log to a file instead of the console.
-
Method Details
-
severity
The global severity: messages below it are dropped. -
setSeverity
-
severity
The severity for one named part of Mapnik, such asload_map. Falls back to the global one. -
setSeverity
-
clearObjectSeverities
public static void clearObjectSeverities()Forget every per-object severity set withsetSeverity(String, Severity). -
format
The line format, which uses%Y-%m-%d %H:%M:%Sstyle time codes. -
setFormat
-
toFile
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 fromtoFile(java.nio.file.Path), so its text is complete.
-