Package org.apache.camel.support
Class LoggerHelper
java.lang.Object
org.apache.camel.support.LoggerHelper
Helper for logging purposes.
-
Method Summary
Modifier and TypeMethodDescriptionstatic IntegerextractSourceLocationLineNumber(String location) static StringIf the node isLineNumberAwarethen get a logger name that will point to the source:line, otherwise return null.static StringgetSourceLocation(Object node) static StringgetSourceLocationOnly(Object node) static StringsourceNameOnly(String location) static StringstripScheme(String location) static StringstripSourceLocationLineNumber(String location)
-
Method Details
-
getLineNumberLoggerName
If the node isLineNumberAwarethen get a logger name that will point to the source:line, otherwise return null.- Parameters:
node- the node- Returns:
- the logger name, or null
-
getSourceLocation
-
getSourceLocationOnly
-
stripSourceLocationLineNumber
-
stripScheme
-
sourceNameOnly
-
extractSourceLocationLineNumber
-