In Payara 5 we used logback framework for logging. All you had to do was install the libraries from the link: goodees/payara-logback at master · goodees/goodees · GitHub with commands:
asadmin add-library --type common payara-logback-libs.jar
asadmin deploy --type osgi payara-logback-delegation.jar
asadmin deploy --type osgi payara-logback-access.jar
Now in Payara 6 first two commands works but last throws error:
remote failure: Error occurred during deployment: Exception while loading the app : org.osgi.framework.BundleException: Unable to resolve io.github.goodees.payara-logback-access [401](R 401.0): missing requirement [io.github.goodees.payara-logback-access [401](R 401.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.catalina)(version>=4.1.0)(!(version>=6.0.0))) Unresolved requirements: [[io.github.goodees.payara-logback-access [401](R 401.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.catalina)(version>=4.1.0)(!(version>=6.0.0)))]. Please see server.log for more details.
Command deploy failed.
How to install logback now?