Fix code samples in metrics-log4j/metrics-log4j2 docs