Skip to content

Commit

Permalink
Replaced logger with log-ng
Browse files Browse the repository at this point in the history
Also disabled publish script.  Re-enable in your project if needed.
  • Loading branch information
stupid-genius committed May 30, 2024
1 parent 62d0a68 commit 310aae3
Show file tree
Hide file tree
Showing 9 changed files with 131 additions and 357 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
node_modules
dist
package
*.log
*.log.gz
2 changes: 1 addition & 1 deletion app/server/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const express = require('express');
const Logger = require('log-ng');
const morgan = require('morgan');
const servefavicon = require('serve-favicon');
const path = require('path');
const config = require('./config');
const Logger = require('./logger');

/* eslint-disable-next-line no-undef */
const logger = new Logger(path.basename(__filename));
Expand Down
86 changes: 0 additions & 86 deletions app/server/logger.js

This file was deleted.

2 changes: 1 addition & 1 deletion app/server/routes.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const express = require('express');
const Logger = require('log-ng');
const path = require('path');
const config = require('./config');
const Logger = require('./logger');

/* eslint-disable-next-line no-undef */
const logger = new Logger(path.basename(__filename));
Expand Down
Loading

0 comments on commit 310aae3

Please sign in to comment.