Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
Tobias Hübner 71871a86d6 readme fix pirms 5 mēnešiem
src readme and refactor pirms 5 mēnešiem
.gitignore init pirms 5 mēnešiem readme fix pirms 5 mēnešiem
build.gradle.kts init pirms 5 mēnešiem
gradlew init pirms 5 mēnešiem
gradlew.bat init pirms 5 mēnešiem
settings.gradle.kts init pirms 5 mēnešiem


Thread Safe fast access logger. When using most log frameworks it always bothered me that you had to initialize multiple loggers and even pass them down everywhere.

This is an attempt to reduce the boiler plate code using one static abstract class, that can be initialized with any logger that implements a predefined interface.


public static void main(String[] args){
    // initialize a Logger
    FileLogger fl = new FileLogger("/path/to/logs");
    LogPoint.log(LogLevel.Trace, "your message");
    LogPoint.log(new Exception("an exception has occured"));

After initialization logs can be send anywhere using the static method.

The Logger is also written in a way to be compatible, meaning you don’t have to initialize it. If you log messages to it, without initializing it, it will simply print them to System.out.