egordorichev / LastTry

:deciduous_tree: LastTry is open-source game written in Java, using LibGDX library and inspired by Terraria :deciduous_tree:
MIT License
119 stars 17 forks source link

implemented slf4j-log4j #106

Closed pollend closed 7 years ago

pollend commented 7 years ago

I thought I would try to work on small contributions and tweaks. I've replaced the existing logging with slf4j-log4j. It shows source of the message and where the message is being logged from. This should help with debugging your game in the future.

0 [LWJGL Application] DEBUG org.egordorichev.lasttry.world.biome.Biomes  - Loaded biome: lt:forest - Cached[true]
1 [LWJGL Application] DEBUG org.egordorichev.lasttry.world.biome.Biomes  - Loaded biome: lt:jungle - Cached[true]
1 [LWJGL Application] DEBUG org.egordorichev.lasttry.world.biome.Biomes  - Loaded biome: lt:desert - Cached[true]
1 [LWJGL Application] DEBUG org.egordorichev.lasttry.world.biome.Biomes  - Loaded biome: lt:crimson - Cached[false]
1 [LWJGL Application] DEBUG org.egordorichev.lasttry.world.biome.Biomes  - Loaded biome: lt:crimson_desert - Cached[false]
1 [LWJGL Application] DEBUG org.egordorichev.lasttry.world.biome.Biomes  - Loaded biome: lt:corruption - Cached[false]
1 [LWJGL Application] DEBUG org.egordorichev.lasttry.world.biome.Biomes  - Loaded biome: lt:corruption_desert - Cached[false]
10 [LWJGL Application] DEBUG org.egordorichev.lasttry.world.WorldIO  - Loading world default...
21 [LWJGL Application] DEBUG org.egordorichev.lasttry.world.WorldIO  - Done loading world default!
22 [LWJGL Application] DEBUG org.egordorichev.lasttry.player.PlayerIO  - Loading player default...
64 [LWJGL Application] DEBUG org.egordorichev.lasttry.player.PlayerIO  - Done loading player default!
66 [LWJGL Application] DEBUG org.egordorichev.lasttry.world.chunk.gc.ChunkGcManager  - Chunk GC is not in progress
66 [LWJGL Application] DEBUG org.egordorichev.lasttry.world.chunk.gc.ChunkGcManager  - Loaded chunks is: 0
67 [LWJGL Application] DEBUG org.egordorichev.lasttry.world.chunk.gc.ChunkGcManager  - Level of chunk gc to be scheduled is: SLEEP
86 [LWJGL Application] DEBUG org.egordorichev.lasttry.world.chunk.ChunkIO  - Loading chunk 7:3...
132 [LWJGL Application] DEBUG org.egordorichev.lasttry.world.chunk.ChunkIO  - Done loading chunk 7:3!
161 [LWJGL Application] DEBUG org.egordorichev.lasttry.world.chunk.ChunkIO  - Loading chunk 8:3...
179 [LWJGL Application] DEBUG org.egordorichev.lasttry.world.chunk.ChunkIO  - Done loading chunk 8:3!
1526 [LWJGL Application] DEBUG org.egordorichev.lasttry.world.chunk.ChunkIO  - Loading chunk 0:0...
1552 [LWJGL Application] DEBUG org.egordorichev.lasttry.world.chunk.ChunkIO  - Done loading chunk 0:0!
egordorichev commented 7 years ago

Thank you, @pollend! Be sure to join discord: https://discord.gg/dG2VT9X