Add support for SLF4J logging in :api
This commit is contained in:
@@ -44,10 +44,10 @@ dependencies {
|
||||
implementation "org.codehaus.janino:janino:${janinoVersion}"
|
||||
implementation "org.codehaus.janino:commons-compiler:${janinoVersion}"
|
||||
|
||||
|
||||
// Spring
|
||||
implementation 'org.springframework.boot:spring-boot-starter'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-freemarker'
|
||||
implementation "org.slf4j:jul-to-slf4j:${slf4jVersion}"
|
||||
}
|
||||
|
||||
task provideGameEngine(type: Copy) {
|
||||
|
||||
@@ -1,13 +1,18 @@
|
||||
package ${package};
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import com.bartlomiejpluta.base.api.game.context.Context;
|
||||
import com.bartlomiejpluta.base.api.game.screen.Screen;
|
||||
import com.bartlomiejpluta.base.api.game.runner.GameRunner;
|
||||
|
||||
public class ${className} implements GameRunner {
|
||||
private static final Logger log = LoggerFactory.getLogger(${className}.class);
|
||||
|
||||
@Override
|
||||
public void init(Context context) {
|
||||
log.info("The game runner is not implemented yet...");
|
||||
throw new RuntimeException("Not implemented yet");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user