Hello
I would like to get the log from keycloak in a log file.
If I try the start command :
bin/kc.[sh|bat] start --log=console,file --log-file=/<your-file.log>
from this documentation :
I get an error with --log-file option not allowed
If I try the following start command in a console :
sudo -u keycloak /opt/keycloak/bin/kc.sh start --spi-events-listener-jboss-logging-success-level=info --spi-events-listener-jboss-logging-error-level=error
from this documentation :
https://www.keycloak.org/docs/latest/server_admin/index.html#event-listener
it is better as I can have the log in the console.
B
But is there a way to forward this console flow to a file ?
Many thanks