Chat Tutorial in NetBeans/Server: Difference between revisions

Content deleted Content added
imported>SimonSmall
added Category NetBeans
imported>SimonSmall
Changed log file configuration
Line 263:
turn_length=300
statistics_filename=server_stats.xml
log4j_url=log4jlog4j_server.properties
 
# World and RP configuration
Line 307:
Although you don't have to provide a Log configuration file, you can if you wish.
 
Create another empty file, as you did with the '''server.ini''' file, with a name of '''log4jlog4j_server.properties''' and copy the following code into it (NetBeans remembers the file types you created, so Empty will be on the first selection screen)
 
<pre>
# Set root loggerlogging level to DEBUGINFO, and itscreate onlytwo appenderoutput to A1.configurations
log4j.rootLogger=INFO, Console, File
 
# Paste all loggerlog entries with a threshold of WARN to the console
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Console.layout.ConversionPattern=%-4rd{ISO8601} [%t] %-5p %c %x - %m%n
 
# Paste all log entries to a daily log file
log4j.appender.File=org.apache.log4j.DailyRollingFileAppender
log4j.appender.File.File=log/server.log
log4j.appender.File.layout=org.apache.log4j.PatternLayout
log4j.appender.File.layout.ConversionPattern=%-4rd{ISO8601} [%t] %-5p %c %x - %m%n
 
# Set priority to warning messages and above, disabling debug and info messages
# Disabled debug messages... to avoid too many logs
log4j.logger.marauroa.server.game.RPServerManager=WARN
</pre>