1 |
|
2 |
|
3 |
|
4 | 'use strict';
|
5 |
|
6 | const config = {};
|
7 | module.exports = config;
|
8 |
|
9 |
|
10 | config.cli = {};
|
11 | config.cli.command = null;
|
12 |
|
13 |
|
14 | config.core = {};
|
15 |
|
16 |
|
17 | config.core.workers = 1;
|
18 |
|
19 |
|
20 | config.core.errors = {};
|
21 |
|
22 | config.core.errors.showStack = true;
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 | config.core.starting = {};
|
30 |
|
31 | config.core.starting.groupId = null;
|
32 | config.core.starting.userId = null;
|
33 |
|
34 |
|
35 | config.core.running = {};
|
36 | config.core.running.groupId = null;
|
37 | config.core.running.userId = null;
|
38 |
|
39 |
|
40 | config.core.master = {};
|
41 | config.core.master.title = 'bedrock1d';
|
42 |
|
43 |
|
44 | config.core.worker = {};
|
45 | config.core.worker.restart = false;
|
46 | config.core.worker.title = 'bedrock1d-worker';
|
47 |
|
48 |
|
49 | config.constants = {};
|
50 |
|
51 |
|
52 | config.paths = {
|
53 |
|
54 |
|
55 | cache: null,
|
56 | log: null
|
57 | };
|
58 |
|
59 |
|
60 | config.loggers = {};
|
61 |
|
62 |
|
63 | config.loggers.console = {};
|
64 | config.loggers.console.level = 'debug';
|
65 | config.loggers.console.silent = false;
|
66 | config.loggers.console.json = false;
|
67 | config.loggers.console.timestamp = true;
|
68 | config.loggers.console.colorize = true;
|
69 |
|
70 | config.loggers.console.bedrock = {};
|
71 |
|
72 | config.loggers.console.bedrock.modulePrefix = true;
|
73 | config.loggers.console.bedrock.onlyModules = false;
|
74 | config.loggers.console.bedrock.excludeModules = false;
|
75 |
|
76 |
|
77 | config.loggers.app = {};
|
78 |
|
79 | config.loggers.app.level = 'debug';
|
80 | config.loggers.app.silent = false;
|
81 | config.loggers.app.json = false;
|
82 | config.loggers.app.timestamp = true;
|
83 |
|
84 | config.loggers.app.filename = null;
|
85 | config.loggers.app.maxsize = 2 * 1024 * 1024;
|
86 | config.loggers.app.maxFiles = 10;
|
87 |
|
88 | config.loggers.app.bedrock = {};
|
89 |
|
90 | config.loggers.app.bedrock.enableChownDir = false;
|
91 |
|
92 | config.loggers.app.bedrock.modulePrefix = false;
|
93 |
|
94 |
|
95 | config.loggers.access = {};
|
96 |
|
97 | config.loggers.access.level = 'debug';
|
98 | config.loggers.access.silent = false;
|
99 | config.loggers.access.json = false;
|
100 | config.loggers.access.timestamp = true;
|
101 |
|
102 | config.loggers.access.filename = null;
|
103 | config.loggers.access.maxsize = 2 * 1024 * 1024;
|
104 | config.loggers.access.maxFiles = 10;
|
105 |
|
106 | config.loggers.access.bedrock = {};
|
107 |
|
108 | config.loggers.access.bedrock.enableChownDir = false;
|
109 |
|
110 | config.loggers.access.bedrock.modulePrefix = false;
|
111 |
|
112 |
|
113 | config.loggers.error = {};
|
114 |
|
115 | config.loggers.error.level = 'error';
|
116 | config.loggers.error.silent = false;
|
117 | config.loggers.error.json = false;
|
118 | config.loggers.error.timestamp = true;
|
119 |
|
120 | config.loggers.error.filename = null;
|
121 | config.loggers.error.maxsize = 2 * 1024 * 1024;
|
122 | config.loggers.error.maxFiles = 10;
|
123 |
|
124 | config.loggers.error.bedrock = {};
|
125 |
|
126 | config.loggers.error.bedrock.enableChownDir = false;
|
127 |
|
128 | config.loggers.error.bedrock.modulePrefix = false;
|
129 |
|
130 |
|
131 | config.loggers.email = {};
|
132 | config.loggers.email.level = 'critical';
|
133 | config.loggers.email.to = ['cluster@localhost'];
|
134 | config.loggers.email.from = 'cluster@localhost';
|
135 | config.loggers.email.silent = true;
|
136 | config.loggers.email.json = true;
|
137 | config.loggers.email.timestamp = true;
|
138 |
|
139 | config.loggers.email.bedrock = {};
|
140 |
|
141 |
|
142 | config.loggers.categories = {
|
143 | app: ['console', 'app', 'error', 'email'],
|
144 | access: ['access', 'error']
|
145 | };
|