In server simple edit the .\config\log4j.properties, where to put this file in clients apps, the clients in java apps, browser js and android apps.
I had tried follow the examples:
[url]
http://docs2x.smartfoxserver.com/api-do ... ogger.html
[/url]
Code: Select all
sfs.logger.addEventListener(SFS2X.LoggerEvent.INFO, onInfoMessage, this);
but it said logger is not found. How/where to declare sfs.logger ?
atm i add custom logj2 in maven
Code: Select all
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.16.0</version>
</dependency>
but this only log my custom error/info since I cannot attach the new log2j into current build in sfs log
some help please