Several questions about LOG4J

Category: Java EE
 
karie_dong
2009-05-20 12:31:14

Sponsored Links
1. For logger.info (String []), then the output is [Ljava.lang.String; @ 62974e, how to let him show more friendly point?

Sponsored Links

th641593
2009-05-20 12:38:14
changed: log.info (Arrays.toString (new String [] {"F", "A"}));
zb0802
2009-05-20 12:41:23
This log4j does not matter now, it should call the String []. toString () method.

you write System.out.println (String []); also the same.

upstairs, I also learned a trick.
loliahu
2009-05-20 12:49:08
er, right ah, it does not matter with log4j
xuyoufu
2009-05-20 01:08:46
Arrays.toString only jdk1.5 inside only ah, strong!
solitudine
2009-05-20 01:11:33
worthy of three-star, ^ _ ^, learning!
chouwu
2009-05-20 01:19:39
Samsung really deserves it! !
Domain and server ip had changed since 8/23/2013. Suspend the user registration and posts for program maintenance.