Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Admin Console LogView cannot view logs if formatted by JSON #1225
I found that Admin Console Log Viewer show nothing logs formatted by JSON.
I think that Log Viewer should accept all log format supported by Payara Server. e.g. ULF, ODL, JSON.
Log Viewer shows any logs that format are supported by Payara Server. Certainly, Log Viewer works well in case of ULF and ODL format. But JSON format not work.
Steps to reproduce (Only for bug reports)
1 -** Start the domain
2 -** Configure an HTTP network listener in the admin console:
3--** Restart the domain
4--**After the restart domain
I can reproduce it. But I'm afraid that LogViewer cannot show JSON-formatted logs without more improvement. (I think it's not a bug.)
com.sun.enterprise.server.logging.GFFileHandler.formatter in logging.properties is accepted UniformLogFormatter, ODLLogFormatter or custom formatters. GFFileHandler assumes JSONLogFormatter as a custom formatter and LogViewer cannot show any custom formatters.
If you want to show JSON-formatted logs on Admin Console in the present, I suggest using not LogViewer but RawLogViewer.
I think that it should be treat as an improvement request.