On Sun, Aug 21, 2022 at 11:14 PM 林 政剛 <[email protected]> wrote:
>
> Hi,
>
> I need to enable logging of the rest api, for example, all of the 
> requests/responses of HTTP.
> I did some research on the Internet. I think I need to set the logging filter 
> for Jersey like this.
> But I don't know how to do it in Guacamole.
>
>     <init-param>
>          
> <param-name>com.sun.jersey.spi.container.ContainerRequestFilters</param-name>
>          
> <param-value>com.sun.jersey.api.container.filter.LoggingFilter</param-value>
>      </init-param>
>      <init-param>
>          
> <param-name>com.sun.jersey.spi.container.ContainerResponseFilters</param-name>
>          
> <param-value>com.sun.jersey.api.container.filter.LoggingFilter</param-value>
>      </init-param>
>

Logging for Guacamole is controlled by the logback.xml file in the
GUACAMOLE_HOME directory (/etc/guacamole, usually), as documented in
the manual:

https://guacamole.apache.org/doc/gug/configuring-guacamole.html#logging-within-the-web-application

However, perhaps it would be better if you'd explain in more detail
what you're trying to achieve by logging these REST API calls? There
may be other ways to gather the information that you need outside of
enabling this logging.

-Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to