Skip to content

Java-OS/Example-Modules

Repository files navigation

Sample JOS Modules

Note : These modules tested with Java 21.

Generate jpkg archive

All jos modules should be archived with jpkg format . this archive is based on the same zip archive , with the different that has a additional file named manifest.yaml inside that .
this file help JOS to get information's of module. Please read maven-jpkg document

compile module :

cd 01-basic # choose module 
mvn clean compile package jpkg:archive
# jpkg should be generated : 
ls ./target/jos-module/01-basic-0.1.jpkg

Exclude jos modules

You must exclude any jar file contain this modules from your projects :

  • jos.api
  • org.slf4j

Manage Modules:

Open JOS web panel http://w.x.y.z:7080 and go to modules tab , click on + button and choose jpkg archive.

Manage Logs:

Click on log management button then config your log appender.
Note : currently jos support file and syslog appender.
Note : You can runtime change log level without restart module.

File Appender


now click on + to add new log appender base on your favorite configuration.

click on live stream button.
Usable for:

  • stream logs on web browser
  • check log pattern
  • check levels

Syslog Appender

Go to syslog tab.

Click on + to add new syslog appender.

About

JOS Example modules

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published