Nick Couchman ha scritto il 06/04/20 alle 14:15:
[...]
By default it should log at the INFO level, but instead of removing the
line, try changing the root level option to either info or warn (or
maybe warning).
if I set info I can't see any logs...
But can I ask you something more: there is a way to reload configuration
fi0le (like logback.xml) without reloading guacamole that disconnect all
active users and connections?
In effect I'm a little confused. If I remove the logback.xml (or I set
info to level properties of the root tag of logback.xml) in catalina.out
I can find guacamole info log level and more. The logs I find are like
these:
[2020-04-07 15:10:18] [info] #011at
org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint.sendInstruction(GuacamoleWebSocketTunnelEndpoint.java:152)
[2020-04-07 15:10:18] [info] #011at
org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint.access$200(GuacamoleWebSocketTunnelEndpoint.java:53)
[2020-04-07 15:10:18] [info] #011at
org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint$2.run(GuacamoleWebSocketTunnelEndpoint.java:253)
If I restore logback.xml to the default value I can find a lot of logs
like these:
[2020-04-06 10:50:49] [info] #011at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
~[tomcat9-util-9.0.16.jar:9.0.16]
[2020-04-06 10:50:49] [info] #011at
java.base/java.lang.Thread.run(Thread.java:834) ~[na:na]
[2020-04-06 10:50:49] [info] Caused by: java.net.SocketException: Socket closed
[2020-04-06 10:50:49] [info] #011at
java.base/sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:316) ~[na:na]
[2020-04-06 10:50:49] [info] #011at
java.base/sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:153) ~[na:na]
[2020-04-06 10:50:49] [info] #011at
java.base/java.io.OutputStreamWriter.flush(OutputStreamWriter.java:254) ~[na:na]
[2020-04-06 10:50:49] [info] #011at
org.apache.guacamole.io.WriterGuacamoleWriter.write(WriterGuacamoleWriter.java:58)
~[guacamole-common-1.1.0.jar:na]
[2020-04-06 10:50:49] [info] #011... 26 common frames omitted
[2020-04-06 10:50:49] [info] 08:50:49.873 [https-openssl-nio-8443-exec-16]
DEBUG o.a.i.d.pooled.PooledDataSource - Connection 797041329 is GOOD!
[2020-04-06 10:50:49] [info] 08:50:49.874 [https-openssl-nio-8443-exec-16]
DEBUG o.a.i.d.pooled.PooledDataSource - Returned connection 797041329 to pool.
[2020-04-06 10:50:49] [info] 08:50:49.874 [https-openssl-nio-8443-exec-16] INFO
o.a.g.tunnel.TunnelRequestService - User "rmarsilio" disconnected from connection
"10". Duration: 1695849 milliseconds
[2020-04-06 10:50:49] [info] 08:50:49.874 [https-openssl-nio-8443-exec-16]
DEBUG o.a.g.net.InetGuacamoleSocket - Closing socket to guacd.
[2020-04-06 10:50:49] [info] 08:50:49.874 [https-openssl-nio-8443-exec-16]
DEBUG o.a.i.t.jdbc.JdbcTransaction - Opening JDBC Connection
[2020-04-06 10:50:49] [info] 08:50:49.874 [https-openssl-nio-8443-exec-16]
DEBUG o.a.i.d.pooled.PooledDataSource - Checked out connection 1162816654 from
pool.
[2020-04-06 10:50:49] [info] 08:50:49.874 [https-openssl-nio-8443-exec-16]
DEBUG o.a.i.d.pooled.PooledDataSource - Testing connection 1162816654 ...
[2020-04-06 10:50:49] [info] 08:50:49.875 [Thread-726] DEBUG
o.a.g.w.GuacamoleWebSocketTunnelEndpoint - Connection to guacd closed.
[2020-04-06 10:50:49] [info]
org.apache.guacamole.GuacamoleConnectionClosedException: Connection to guacd is
closed.
[2020-04-06 10:50:49] [info] #011at
org.apache.guacamole.io.ReaderGuacamoleReader.read(ReaderGuacamoleReader.java:183)
~[guacamole-common-1.1.0.jar:na]
[2020-04-06 10:50:49] [info] #011at
org.apache.guacamole.io.ReaderGuacamoleReader.readInstruction(ReaderGuacamoleReader.java:195)
~[guacamole-common-1.1.0.jar:na]
[2020-04-06 10:50:49] [info] #011at
org.apache.guacamole.protocol.FilteredGuacamoleReader.readInstruction(FilteredGuacamoleReader.java:81)
~[guacamole-common-1.1.0.jar:na]
[2020-04-06 10:50:49] [info] #011at
org.apache.guacamole.protocol.FilteredGuacamoleReader.readInstruction(FilteredGuacamoleReader.java:81)
~[guacamole-common-1.1.0.jar:na]
--
[2020-04-06 10:50:49] [info] 08:50:49.875 [https-openssl-nio-8443-exec-16]
DEBUG o.a.i.t.jdbc.JdbcTransaction - Setting autocommit to false on JDBC
Connection [org.postgresql.jdbc.PgConnection@454f2c8e]
[...]
[2020-04-06 10:50:49] [info] 08:50:49.879 [https-openssl-nio-8443-exec-16] INFO
o.a.g.tunnel.TunnelRequestService - User "vfabbri" disconnected from connection
"24". Duration: 772535 milliseconds
[2020-04-06 10:50:49] [info] 08:50:49.879 [https-openssl-nio-8443-exec-16]
DEBUG o.a.g.net.InetGuacamoleSocket - Closing socket to guacd.
[...]
[2020-04-06 10:50:49] [info] #011at
org.apache.guacamole.protocol.FilteredGuacamoleReader.read(FilteredGuacamoleReader.java:64)
~[guacamole-common-1.1.0.jar:na]
[2020-04-06 10:50:49] [info] #011at
org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint$2.run(GuacamoleWebSocketTunnelEndpoint.java:246)
~[guacamole-common-1.1.0.jar:na]
[2020-04-06 10:50:49] [info] Caused by: java.net.SocketException: Socket closed
Now I can find a lot of logs. Seems that now are added nested logs with
a nested level inside the info level log, levels that are write in
capital letters: DEBUG, INFO, WARN...
What I need is remove the nested DEBUG log... seems that the "nested
logs" are generated from logback.xml but I don't know how to show only
info or more level nested logs...
It is more clear now?
Piviul
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]