Asadmin should use STDOUT for communication with the user, not STDERR and the logging system #25169
Labels
breaking change
Changes something users / app devs
New feature
A major new user functionality was added
techdebt
Milestone
I have to analyze how many changes this means, but basically when somebody changes the formatter or level, user cannot use commands in script which parse the output.
Expectations:
osgi --session new
should produce just the session id, no "command successful", no timestamp, no log level, just one new line after the id, done, regardless log format.--terse
and configured logfile, it should use that for all asadmin commands. The current state causes Launcher should not touch server.log #24065 .Consider also some flexibility:
ASADMIN_LOG_FILE=${HOME}/asadmin.log
,ASADMIN_LOG_FILE_FORMATTER=org.glassfish.main.jul.formatter.ODLLogFormatter
,ASADMIN_LOG_FILE_FORMAT=
,ASADMIN_LOG_FILE_ROLL_POLICY=hour/day/week/month/year/never
,ASADMIN_LOG_FILE_MAX_FILES=10
,ASADMIN_STDERR_FORMATTER=%m
,ASADMIN_STDERR_FORMAT=%m
,ASADMIN_STDERR_ENABLED
- last two could be overridden by using--terse
explicitlyNotes:
--terse
.asadmin start-domain
writes toserver.log
once, three phases each uses different logging config), but still can be split to standalone PRs.Key classes to touch:
The text was updated successfully, but these errors were encountered: