This repository has been archived by the owner on Jan 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathserver.cfg
76 lines (63 loc) · 2.15 KB
/
server.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
[DEFAULT]
# These values override command line options. If you prefer
# command line configuration then comment out listen_address
# and listen_port. If commented out here and not provided
# on the command line the default values are still used.
listen_address = 127.0.0.1
listen_port = 6317
max_players = 1024
# Don't change these unless you know what you're doing
time_per_turn = 1
spin_delay_ms = 0.001
# 0.5 is twice as face and 2.0 is twice as slow
time_offset = 1.0
# City sizes to generate. 2 would create cities twice as big.
city_size = 1
# limits on how many negative and positve trait points a character
# can spend and recieve during generation.
max_negative_trait_points = 20
max_positive_trait_points = 20
# Logging configuration
# Add additional loggers, handlers, formatters here
# Uses python's logging config file format
# http://docs.python.org/lib/logging-config-fileformat.html
[loggers]
keys = root, worldmap, network
[handlers]
keys = console, rotating
[formatters]
keys = generic
# If you create additional loggers, add them as a key to [loggers]
# Remember, logging level is inherited. So default for all loggers
# is set here. All handlers with NOTSET will inherit this value.
# Logging levels: DEBUG, INFO, WARN, ERROR, CRITICAL, and NOTSET
[logger_root]
level = DEBUG
handlers = console, rotating
[logger_worldmap]
level = DEBUG
handlers = rotating
qualname = worldmap
[logger_network]
level = DEBUG
handlers = rotating
qualname = network
# If you create additional handlers, add them as a key to [handlers]
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[handler_rotating]
# This is a rotating file logger. It will automatically
# rotate the server's file log every 10485760 bytes and
# will maintain 10 such enumerated logs. Make sure the
# path is valid for your OS (example, / vs \).
class = handlers.RotatingFileHandler
args = ('./log/server.log', 'a', 10485760, 10)
level = NOTSET
formatter = generic
# If you create additional formatters, add them as a key to [formatters]
[formatter_generic]
format = %(asctime)s.%(msecs)03d %(levelname)-5.5s %(threadName)s [%(name)s] %(message)s
datefmt = %H:%M:%S