use log-helper, remove common.js
[squeep-chores] / lib / common.js
diff --git a/lib/common.js b/lib/common.js
deleted file mode 100644 (file)
index bdf8cf6..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-'use strict';
-
-const path = require('path');
-const { name: packageName, version: packageVersion } = require('../package');
-
-const libraryIdentifier = `${packageName}@${packageVersion}`;
-
-/**
- * Return a function for decorating logging method scopes.
- * @param {String} filename
- */
-const fileScope = (filename) => {
-  const shortFilename = path.basename(filename, '.js');
-  const fScope = (shortFilename === 'index') ? path.basename(path.dirname(filename)) : shortFilename;
-  return (scope) => [libraryIdentifier, fScope, scope].join(':');
-};
-
-module.exports = {
-  fileScope,
-};
\ No newline at end of file