RaulGracia commented on issue #3165:
URL: https://github.com/apache/bookkeeper/issues/3165#issuecomment-1086110467


   Thanks @hangc0276, I agree with you. I remember testing logging with PR 
#2816 and the follow-up PR #2837. Anyway, I just checked out the project on 
commit `6e3c82cbfba7e75b946075a65c16cb390c09f9a6` (PR #2837) and logging seems 
to be working fine:
   ```
   $ bin/bookkeeper localbookie 1
   2022-04-01T18:18:16,114 - INFO  - [main:LocalBookKeeper@458] - Using 
configuration file 
/home/raul/Documents/workspace/bookkeeper-log4j2-config-issue/bookkeeper/bookkeeper-dist/server/target/bookkeeper-server-4.15.0-SNAPSHOT/conf/bk_server.conf
   2022-04-01T18:18:16,121 - INFO  - [main:LocalBookKeeper@90] - Running 1 
bookie(s) on zk ensemble = '127.0.0.1:2181'.
   2022-04-01T18:18:16,123 - INFO  - [main:LocalBookKeeper@120] - Starting ZK 
server
   2022-04-01T18:18:16,128 - INFO  - [main:ZookeeperBanner@42] - 
   2022-04-01T18:18:16,128 - INFO  - [main:ZookeeperBanner@42] -   ______       
           _                                          
   2022-04-01T18:18:16,129 - INFO  - [main:ZookeeperBanner@42] -  |___  /       
          | |                                         
   2022-04-01T18:18:16,129 - INFO  - [main:ZookeeperBanner@42] -     / /    ___ 
    ___   | | __   ___    ___   _ __     ___   _ __   
   2022-04-01T18:18:16,129 - INFO  - [main:ZookeeperBanner@42] -    / /    / _ 
\   / _ \  | |/ /  / _ \  / _ \ | '_ \   / _ \ | '__|
   2022-04-01T18:18:16,129 - INFO  - [main:ZookeeperBanner@42] -   / /__  | (_) 
| | (_) | |   <  |  __/ |  __/ | |_) | |  __/ | |    
   2022-04-01T18:18:16,129 - INFO  - [main:ZookeeperBanner@42] -  /_____|  
\___/   \___/  |_|\_\  \___|  \___| | .__/   \___| |_|
   2022-04-01T18:18:16,129 - INFO  - [main:ZookeeperBanner@42] -                
                               | |                     
   2022-04-01T18:18:16,129 - INFO  - [main:ZookeeperBanner@42] -                
                               |_|                     
   2022-04-01T18:18:16,130 - INFO  - [main:ZookeeperBanner@42] - 
   2022-04-01T18:18:16,131 - INFO  - [main:Environment@98] - Server 
environment:zookeeper.version=3.6.2--803c7f1a12f85978cb049af5e4ef23bd8b688715, 
built on 09/04/2020 12:44 GMT
   2022-04-01T18:18:16,131 - INFO  - [main:Environment@98] - Server 
environment:host.name=ignatius
   2022-04-01T18:18:16,131 - INFO  - [main:Environment@98] - Server 
environment:java.version=11.0.14.1
   2022-04-01T18:18:16,131 - INFO  - [main:Environment@98] - Server 
environment:java.vendor=Ubuntu
   2022-04-01T18:18:16,131 - INFO  - [main:Environment@98] - Server 
environment:java.home=/usr/lib/jvm/java-11-openjdk-amd64
   ```
   However, when doing the same exact experiment with last `branch-4.15` 
commit, I can confirm that logging is not working:
   ```
   $ bin/bookkeeper localbookie 1
   2022-04-01T15:38:45,252 - WARN  - [main:ServerCnxnFactory@309] - maxCnxns is 
not configured, using default value 0.
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to