Selaa lähdekoodia

.

pull/65/head
radivoje.milutinovic 3 vuotta sitten
vanhempi
commit
bd3163045c
2 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. 3
    0
      README.md
  2. 1
    1
      src/logging/loggerDbCon.js

+ 3
- 0
README.md Näytä tiedosto

@@ -0,0 +1,3 @@
# Node API template

This is template of web API with mongo db as database node.js as runtime and express as framework. We have user model and JWT tokens setup as well as mediator pattern and winston as logger.

+ 1
- 1
src/logging/loggerDbCon.js Näytä tiedosto

@@ -6,7 +6,7 @@ const loggerWinston = winston.createLogger({
format: winston.format.json(),
defaultMeta: { service: 'user-service' },
transports: [
new winston.transports.File({ filename: '..public/loggerFiles/dbCon.log', level: 'silly' })
new winston.transports.File({ filename: '../public/loggerFiles/dbCon.log', level: 'silly' })
],
});

Loading…
Peruuta
Tallenna