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 Jun 1, 2024
1 parent 62d0a68 commit 3a0f029
Show file tree
Hide file tree
Showing 10 changed files with 136 additions and 357 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
filter: blob:none
- name: Cache node_modules
uses: actions/cache@v3
id: tests
Expand Down
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 3a0f029

Please sign in to comment.