-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathconfig-example.nasty.toml
54 lines (44 loc) · 1.56 KB
/
config-example.nasty.toml
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
[twitter_api]
consumer_api_key = "Enter Twitter consumer API key here"
consumer_api_secret = "Enter Twitter consumer API secret key here"
access_token = "Enter Twitter access token here"
access_token_secret = "Enter Twitter access token secret here"
[logging]
version = 1
disable_existing_loggers = false
[logging.formatters]
[logging.formatters.colored]
"()" = "nasty_utils.ColoredArgumentsFormatter"
format = "{log_color}{message}"
style = "{"
arg_color = "reset"
[logging.formatters.json]
"()" = "jsonlog.JSONFormatter"
keys = [
"timestamp", "levelno", "level", "message", "name", "pathname", "lineno",
"thread", "threadName", "process", "processName", "traceback",
]
timespec = "milliseconds"
[logging.handlers]
[logging.handlers.console]
class = "nasty_utils.TqdmAwareStreamHandler"
level = "INFO"
formatter = "colored"
[logging.handlers.file]
class = "nasty_utils.TqdmAwareFileHandler"
formatter = "json"
filename = "{XDG_DATA_HOME}/logs/{argv0}-{asctime:%Y%m%d-%H%M%S}.log"
encoding = "UTF-8"
symlink = "{XDG_DATA_HOME}/logs/{argv0}-current.log"
[logging.loggers]
[logging.loggers.oauthlib]
level = "INFO"
[logging.loggers.requests_oauthlib]
level = "INFO"
[logging.loggers."tweepy.binder"]
level = "INFO"
[logging.loggers.urllib3]
level = "INFO"
[logging.root]
level = "DEBUG"
handlers = [ "console", "file" ]