`test-logging` - Issue test messages to a runtime event logger
test-logging <logger-name>
- The `test-logging` command sends to the named logger a series of test messages,
one for each of the standard logging levels predefined by Java.
: re `standard logging levels` see
https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/Level.html
- The working directory must be the command directory.
: see `^*working directory$` @ `^*shell commands$` @
http://reluk.ca/project/Java/editorial_guidelines.brec
- Usually the `logger-name` argument will name the proper package of a software project,
or possibly a subpackage of it.
/ The proper package of a project is the Java package that identifies it.
E.g. use `Breccia.Web.imager` for the Breccia Web imager project.
: see `^*proper package` @ http://reluk.ca/project/glossary.brec
━━━━━━━━━
Example
─────────
- To test the logger of the Breccia Web imager project:
>+ test-logging Breccia.Web.imager
/
⇒ Nov. 07, 2020 9:46:47 P.M. Java.LoggingTestCommand execute
OFF: Logging at levels `OFF`, `SEVERE`, `WARNING`, `INFO`, `CONFIG`, `FINE`, `FINER`, `FINEST` and `ALL`:
Nov. 07, 2020 9:46:47 P.M. Java.LoggingTestCommand test
OFF: Testing at level OFF
Nov. 07, 2020 9:46:47 P.M. Java.LoggingTestCommand test
SEVERE: Testing at level SEVERE
Nov. 07, 2020 9:46:47 P.M. Java.LoggingTestCommand test
WARNING: Testing at level WARNING
Nov. 07, 2020 9:46:47 P.M. Java.LoggingTestCommand test
INFO: Testing at level INFO
Nov. 07, 2020 9:46:47 P.M. Java.LoggingTestCommand test
CONFIG: Testing at level CONFIG
Nov. 07, 2020 9:46:47 P.M. Java.LoggingTestCommand test
FINE: Testing at level FINE
\ Copyright © 2020 Michael Allan. Licence MIT.