By: Marcel Thannhaeuser named 18 Mar 2021 at 5:54 a.m. CDT

2 Responses
Marcel Thannhaeuser gravatar
Currently all Scripts are logging via the print function which results in a message with INFO loglevel in the logfile. Is it possible to use python logging instead, or do you have another suggestion for controlling the loglevel of messages?

By Mobarak Hosen Shakil staff 18 Mar 2021 at 5:14 p.m. CDT

Mobarak Hosen Shakil gravatar
Hi Marcel Thannhaeuser, Yes, there are some ways to control the logLevel. Please, find an attribute named as `logginglevel` for both of `oxtrust` and `oxauth` under **JSON Configuration** of Gluu Server GUI, then select the level. I think it's possible to use python logging in the script. Let me check first. I will let you know the update. Regards ~ Shakil

By Mobarak Hosen Shakil staff 26 Mar 2021 at 12:43 p.m. CDT

Mobarak Hosen Shakil gravatar
Hi Marcel Thannhaeuser, I think using `print` is okay. Because this is how gluu maintains log management. Please read through this link to know more about it. https://gluu.org/docs/gluu-server/3.1.7/operation/logs/ Thanks & Regards ~ Shakil