How to print log in a java class in server.
Posted: 21 Feb 2016, 11:26
Hi admin,
How to print log in a java class in server. I reseach and try with an example but it don't work.
private final Logger m_log;
public ChessGameBoard() {
m_log = LoggerFactory.getLogger("com.xdevteam.chess.ChessGameBoard");
....
}
public boolean methodA() {
m_log.info("It should be displayed in server.log");
}
Please give me some solutions.
Cheer,
How to print log in a java class in server. I reseach and try with an example but it don't work.
private final Logger m_log;
public ChessGameBoard() {
m_log = LoggerFactory.getLogger("com.xdevteam.chess.ChessGameBoard");
....
}
public boolean methodA() {
m_log.info("It should be displayed in server.log");
}
Please give me some solutions.
Cheer,