Skip to content

Commit

Permalink
Implement Winston logging and send logs to console, loggly, file an…
Browse files Browse the repository at this point in the history
…d MongoDB (#85)

* logging work in progress

* logging implemented

* added conditional settings for loggly

* Fixed logic
  • Loading branch information
foyzulkarim authored Sep 18, 2023
1 parent 2cc513b commit 07afd9b
Show file tree
Hide file tree
Showing 10 changed files with 5,692 additions and 8 deletions.
5 changes: 4 additions & 1 deletion server/.env.template
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
MONGODB_URL=mongodb://localhost:27017
SERVER_URL=http://localhost
SERVER_URL=http://localhost:4000
LOGGLY_TOKEN=1234-5678-9012
ENABLE_WINSTON_MONGODB=true
ENABLE_WINSTON_LOGGLY=true
1 change: 1 addition & 0 deletions server/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
3 changes: 3 additions & 0 deletions server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ FROM node:18-alpine
WORKDIR /app
ADD package*.json ./
RUN npm install
RUN apk update
RUN apk add
RUN apk add ffmpeg
COPY . .
EXPOSE 4000
EXPOSE 4001
Expand Down
12 changes: 12 additions & 0 deletions server/compose-dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
services:
app:
entrypoint:
- sleep
- infinity
image: docker/dev-environments-default:stable-1
init: true
volumes:
- type: bind
source: /var/run/docker.sock
target: /var/run/docker.sock

Loading

0 comments on commit 07afd9b

Please sign in to comment.