Initial commit
[squeep-logger-json-console] / lib / data-sanitizers.js
diff --git a/lib/data-sanitizers.js b/lib/data-sanitizers.js
new file mode 100644 (file)
index 0000000..e4d0f3c
--- /dev/null
@@ -0,0 +1,28 @@
+'use strict';
+
+/**
+ * Here are some sanitizers to replace data fields before logging.
+ * Well, really, this just documents the expected format.
+ */
+
+/**
+ * template for sanitizers
+ * @param {Object} data
+ * @param {Boolean} sanitize
+ * @returns {Boolean}
+ */
+/* istanbul ignore next */
+function _sanitizer(data, sanitize = true) {
+  let unclean = false;
+
+  if (undefined) { // eslint-disable-line no-constant-condition
+    unclean = true;
+  }
+  if (unclean && sanitize) {
+    data;
+  }
+
+  return unclean;
+}
+
+module.exports = {};
\ No newline at end of file