Java Exception Logging (SLF4J)

Descripción

Catch an exception and log it using an SLF4J logger


File Template: ❌


Prefix

log:exception


Scopes

java


Snippet de código

try {
	${1:// code that may throw exception}
} catch (${2:Exception} ${3:e}) {
	log.error("${4:Error message}", ${3:e});
}