package org.spongepowered.example;

import org.spongepowered.api.event.SpongeEventHandler;
import org.spongepowered.api.event.state.InitializationEvent;
import org.spongepowered.api.event.state.ServerStartingEvent;
import org.spongepowered.api.event.voxel.VoxelEvent;
import org.spongepowered.api.plugin.Plugin;

@Plugin(id = "ExamplePlugin", name = "Example")
public class ExamplePlugin {

    @SpongeEventHandler
    public void onInitialization(InitializationEvent event) {
        event.getGame().getLogger().info("Hey folks, this is INITIALIZATION!");
    }

    @SpongeEventHandler
    public void onServerStarting(ServerStartingEvent event) {
        event.getGame().getLogger().info("Hey...my implementation's server is starting?");
    }
    
    @SpongeEventHandler
    public void onVoxelEvent(VoxelEvent event) {
        event.getGame().getLogger().info("A Block was broken");
    }
}

@@ -29,16 +29,56 @@
 ample;%0A%0A
+import org.apache.logging.log4j.Logger;%0A
 import o
@@ -165,16 +165,141 @@
 t.state.
+ConstructionEvent;%0Aimport org.spongepowered.api.event.state.InitializationEvent;%0Aimport org.spongepowered.api.event.state.Pre
 Initiali
@@ -548,16 +548,34 @@
 lugin %7B%0A
+    Logger logger;
 %0A    @Sp
@@ -613,23 +613,24 @@
 d on
-Initializa
+Construc
 tion(
+Pre
 Init
@@ -666,35 +666,53 @@
     
-event.getGame().getL
+logger = event.getPluginLog();%0A        l
 ogger
-()
 .inf
@@ -733,16 +733,20 @@
 this is 
+PRE-
 INITIALI
@@ -861,35 +861,14 @@
     
-event.getGame().getL
+l
 ogger
-()
 .inf
@@ -1015,35 +1015,14 @@
     
-event.getGame().getL
+l
 ogger
-()
 .inf

update example plugin for new logger changes