On Mon, Oct 5, 2020 at 1:22 AM Alexander <ricardoalx.pe...@gmail.com> wrote:

> Log guacd generated log messages to file /var/log/guacd.log
>
>
guacd logs to syslog, so this is very easily configured by changing your
syslog configuration such that messages from guacd are sent to a specific
log file.



> If I start guacd from the command line in the foreground with *"systemctl
> start guacd"*,   I don“t see the debug log messages.
>

The systemd unit file that is delivered by default does not have debug
logging enabled, so you would have to modify that file, reload the systemd
unit files, and then restart guacd.


>
> If I start guacd from the command line in the foreground with 
> *"/usr/local/sbin/guacd
> -f -L debug"*, then I do see the debug log messages, but still only in
> the console and not in syslog.
>

Yes, this would log to the console.


>
> When setting `log_level = debug` in "/etc/guacamole/guacd.conf", are the
> debug messages supposed to be written to the system log at
> "/var/log/messages"? I'm trying to get the debug messages in a log file,
> but setting `log_level = debug` still logs only "info"-level messages to
> the system log.
>
>
They will be written wherever syslog is configured to write debug-level log
messages.



> I set logback.xml
>
> <configuration>
>     <!-- Appender for debugging -->
>     <appender name="GUAC-DEBUG" class="ch.qos.logback.core.ConsoleAppender">
>         <encoder>
>             <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - 
> %msg%n</pattern>
>         </encoder>
>     </appender>
>
>     <!-- Log at DEBUG level -->
>     <root level="debug">
>         <appender-ref ref="GUAC-DEBUG"/>
>     </root>
> </configuration>
>
> logback.xml is used to configure the logging within the Java portion of
Guacamole Client (the Tomcat web application) and has nothing at all to do
with gaucd.

-Nick

Reply via email to