-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathlog.js
50 lines (43 loc) · 2.5 KB
/
log.js
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
/**
* Built-in Log Configuration
* (sails.config.log)
*
* Configure the log level for your app, as well as the transport
* (Underneath the covers, Sails uses Winston for logging, which
* allows for some pretty neat custom transports/adapters for log messages)
*
* For more information on the Sails logger, check out:
* https://sailsjs.com/docs/concepts/logging
*/
module.exports.log = {
/***************************************************************************
* *
* Valid `level` configs: i.e. the minimum log level to capture with *
* sails.log.*() *
* *
* The order of precedence for log levels from lowest to highest is: *
* silly, verbose, info, debug, warn, error *
* *
* You may also set the level to "silent" to suppress all logs. *
* *
***************************************************************************/
level: 'info',
/********************************************************************
* *
* This is a custom configuration option, for the request logger *
* hook (api/hook/request-logger.js) and the finalize request log *
* helper (api/helpers/finalize-request-log.js). *
* *
* When enabled, the hook and helper will automatically log all *
* incoming requests using the RequestLog model. *
* *
********************************************************************/
captureRequests: true,
/********************************************************************
* This will ignore logging of asset requests *
* (things like `.js`, `.css`, etc.), when capturing request data. *
* *
* Turning this off could make request logs balloon very quickly. *
********************************************************************/
ignoreAssets: true
};