1 |
# sample logging-properties for application tntnet |
2 |
# put this in tntnet.properties and use: |
3 |
# log_init("tntnet.properties"); |
4 |
# in your application to initialize logging |
5 |
# |
6 |
# define categories with: |
7 |
# log_define("some.category") |
8 |
# this defines a static function, so you must put it outside other functions. |
9 |
# you can define a category per file or a category per namespace. |
10 |
# |
11 |
# print logging-messages with: |
12 |
# log_fatal("some fatal message"); |
13 |
# log_error("some error message"); |
14 |
# log_warn("some warn message"); |
15 |
# log_info("some info message"); |
16 |
# log_debug("some debug message"); |
17 |
# |
18 |
rootLogger=INFO |
19 |
|
20 |
# define logger-categories |
21 |
logger.tntnet=INFO |
22 |
|
23 |
file=/var/log/tntnet/tntnet.log |
24 |
maxfilesize=1MB |
25 |
maxbackupindex=10 |
26 |
flushdelay=100 # delay write in milliseconds |