Spherious / game-engine

The game engine for the up-and-coming hit open source Indy game Sperious.
1 stars 0 forks source link

Add logging. #1

Open MarvelousAnything opened 2 years ago

MarvelousAnything commented 2 years ago

Logging is imperative for good code. In almost all cases, using standard output is not recommended. Thus, I believe it is necessary to add a logging library.

I am thinking slf4j and Lombok can be used. In this case, a logger can be created as follows:

@Slf4j
public class Foo {
    public void bar() {
        log.info("Inside bar");
    }
}
MarvelousAnything commented 2 years ago

I am thinking that for some logging concerns, an aspect oriented approach using AspectJ should be looked into.