All Downloads are FREE. Search and download functionalities are using the official Maven repository.

compiler.9.3.46.source-code.VM_global_library.vm Maven / Gradle / Ivy

There is a newer version: 9.3.47
Show newest version
#macro( importslf4j)
#if($logenabled)import org.slf4j.Logger;
import org.slf4j.LoggerFactory;#end
#end

#macro( slf4j $loggeClass)
#if($logenabled)
private final Logger log = LoggerFactory.getLogger(${loggeClass}.class);
#end
#end

#macro( log $level $logMessage)
#if($logenabled)#set ( $d = '"') #set( $stringAfter = $logMessage.replaceAll("'","${d}") )
log.$level($stringAfter);
#end
#end

#macro( loginfo $logMessage )
#if($logenabled)#set ( $d = '"') #set( $stringAfter = $logMessage.replaceAll("'","${d}") )
log.info($stringAfter);
#end
#end

#macro( logdebug $logMessage )
#if($logenabled)#set ( $d = '"') #set( $stringAfter = $logMessage.replaceAll("'","${d}") )
log.debug($stringAfter);
#end
#end

#macro( logdwarn $logMessage )
#if($logenabled)#set ( $d = '"') #set( $stringAfter = $logMessage.replaceAll("'","${d}") )
log.warn($stringAfter);
#end
#end

#macro( logerror $logMessage )
#if($logenabled)#set ( $d = '"') #set( $stringAfter = $logMessage.replaceAll("'","${d}") )
log.error($stringAfter);
#end
#end

#macro( logtrace $logMessage )
#if($logenabled)#set ( $d = '"') #set( $stringAfter = $logMessage.replaceAll("'","${d}") )
log.trace($stringAfter);
#end
#end




© 2015 - 2024 Weber Informatics LLC | Privacy Policy