geosolutions-it / http-proxy

Lean and Mean HTTP Proxy written in Java
GNU General Public License v3.0
21 stars 31 forks source link

update to log4j2 #68

Closed taba90 closed 1 year ago

taba90 commented 1 year ago
taba90 commented 1 year ago

thanks for your review @aaime. Here a screen shot showing log at level debug on console: proxy-logs This is an piece of the log when using a file appender with different layout (together with mapstore) :

DEBUG   2022-11-16 14:18:24.938   HTTPProxy.createHttpClient() - HTTP proxy host: null 
DEBUG   2022-11-16 14:18:24.939   HTTPProxy.createHttpClient() - HTTPS proxy host: null 
INFO   2022-11-16 14:18:24.947   HTTPProxy.createHttpClient() - HTTP Client created 
INFO   2022-11-16 14:19:07.275   Utils.buildURL() - Using default HTTPS port: 443 
INFO   2022-11-16 14:19:07.497   HTTPProxy$1.determineRoute() - HTTP proxy target host: https://gs-stable.geo-solutions.it:443 
INFO   2022-11-16 14:19:07.497   HTTPProxy$1.determineRoute() - Returning proxy route 
DEBUG   2022-11-16 14:19:07.501   HTTPProxy$1.getProxyRoute() - Setting https scheme 
DEBUG   2022-11-16 14:19:07.535   RequestAddCookies.process() - CookieSpec selected: default 
DEBUG   2022-11-16 14:19:07.589   RequestAuthCache.process() - Auth cache not set in the context 
DEBUG   2022-11-16 14:19:07.597   PoolingHttpClientConnectionManager.requestConnection() - Connection request: [route: {s}->https://gs-stable.geo-solutions.it:443][total available: 0; route allocated: 0 of 6; total allocated: 0 of 6] 
DEBUG   2022-11-16 14:19:07.680   PoolingHttpClientConnectionManager.leaseConnection() - Connection leased: [id: 0][route: {s}->https://gs-stable.geo-solutions.it:443][total available: 0; route allocated: 1 of 6; total allocated: 1 of 6] 
DEBUG   2022-11-16 14:19:07.690   MainClientExec.execute() - Opening connection {s}->https://gs-stable.geo-solutions.it:443 
DEBUG   2022-11-16 14:19:07.744   DefaultHttpClientConnectionOperator.connect() - Connecting to gs-stable.geo-solutions.it/164.132.91.198:443 
DEBUG   2022-11-16 14:19:07.745   SSLConnectionSocketFactory.connectSocket() - Connecting socket to gs-stable.geo-solutions.it/164.132.91.198:443 with timeout 0 
DEBUG   2022-11-16 14:19:07.883   SSLConnectionSocketFactory.createLayeredSocket() - Enabled protocols: [TLSv1.3, TLSv1.2, TLSv1.1, TLSv1] 
DEBUG   2022-11-16 14:19:07.883   SSLConnectionSocketFactory.createLayeredSocket() - Enabled cipher suites:....