3.0.2
[squeep-logger-json-console] / lib / data-sanitizers.js
1 'use strict';
2
3 /**
4 * Here are some sanitizers to replace data fields before logging.
5 * Well, really, this just documents the expected format.
6 */
7
8 /**
9 * template for sanitizers
10 * @param {Object} data
11 * @param {Boolean} sanitize
12 * @returns {Boolean}
13 */
14 /* istanbul ignore next */
15 function _sanitizer(data, sanitize = true) {
16 let unclean = false;
17
18 if (undefined) { // eslint-disable-line no-constant-condition
19 unclean = true;
20 }
21 if (unclean && sanitize) {
22 data;
23 }
24
25 return unclean;
26 }
27
28 module.exports = {};