Skip to content
Snippets Groups Projects
Commit e6107aa4 authored by scmoritz's avatar scmoritz
Browse files

Added basic logging

parent bb20e916
No related branches found
No related tags found
1 merge request!6Added basic logging
module.exports = {
"extends": "airbnb-base",
"env": {
"browser": true,
"node": true
'extends': 'airbnb-base',
'env': {
'browser': true,
'node': true
},
"rules": {
"no-multi-str": 0,
"no-underscore-dangle": 0,
'rules': {
'no-multi-str': 0,
'no-underscore-dangle': 0,
'no-console': 0,
},
};
\ No newline at end of file
const Config = {
api_url: 'https://amiv-api.ethz.ch',
verbose: true,
};
module.exports = Config;
const config = require('./config.js');
const log = {
log(message) {
if (config.verbose === true) console.log(message);
},
};
module.exports = log;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment