public void logDomNode ( String msg , Node node , Level level , StackTraceElement caller ) { String toLog = ( msg != null ? msg + "\n" : "DOM node:\n" ) + domNodeDescription ( node , 0 ) ; if ( caller != null ) { logger . logp ( level , caller . getClassName ( ) , caller . getMethodName ( ) + "():" + caller . getLineNumber ( ) , toLog ) ; } else { logger . logp ( level , "(UnknownSourceClass)" , "(unknownSourceMethod)" , toLog ) ; } }
Log a DOM node at a given logging level and a specified caller