Effective Logging using Java Tutorial
Last updated: 2025-09-14
Steps:
-
Create Maven project with the following pom.xml:
Unresolved include directive in modules/6.x.x/pages/frameworks/jk-framework/jk-framework-core/java-util-logging-tutorial.adoc - include::inc/pom.xml[]
If you are using Eclipse, be sure to refresh your project (select your project→ right click→ Maven→ Update Project) |
-
[Optional] Create log config file at src/main/resources/logback.xml with the following contents:
Unresolved include directive in modules/6.x.x/pages/frameworks/jk-framework/jk-framework-core/java-util-logging-tutorial.adoc - include::inc/src/main/resources/logback.xml[]
-
Create Main class with the following contents:
Unresolved include directive in modules/6.x.x/pages/frameworks/jk-framework/jk-framework-core/java-util-logging-tutorial.adoc - include::inc/src/main/java/com/app/logger/JKLoggerExample.java[]
Thats it, now run your App class, and you should see something line this:

Full example source-code can be found at https://github.com/smartapi-com/j-framework-util |