b13 / ddev-keycloak

Adds a Keycloak service to ddev
Apache License 2.0
4 stars 1 forks source link

keycloak logs and log level #2

Open npo-mmenke opened 5 months ago

npo-mmenke commented 5 months ago

hey, thanks for this plugin... I'm having trouble configuring a saml identity provider and would like to check the keycloak logs for hints whats going wrong. Is there any way to access them and/or influence the log level?

ochorocho commented 5 months ago

This command may help to debug issues:

ddev logs -f -s keycloak

How keycloak is started in he container:

start-dev --proxy edge --import-realm

IIRC, start-dev will make keycloak already more verbose.

npo-mmenke commented 5 months ago

thanks, that helps already

I don' think start-dev has any effect on logging, from https://www.keycloak.org/server/configuration

Development mode sets the following default configuration: HTTP is enabled Strict hostname resolution is disabled Cache is set to local (No distributed cache mechanism used for high availability) Theme-caching and template-caching is disabled

here is a reference how to specify log levels when starting:

https://www.keycloak.org/server/logging

bin/kc.[sh|bat] start --log-level=

maybe it's possible to pass this for the plugin?

ochorocho commented 5 months ago

I'm happy to change the startup command. Would be great if you could providde a PR with to command changed according to your need while keeping the options set in start-dev.