Skip to content

Commit

Permalink
update logpipe and fix some formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardobl committed Jan 7, 2025
1 parent 19b7cf4 commit 6c8ae32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,17 @@ services:
cpu_shares: "${CPU_SHARES_IMPORTANT}"
logpipe:
container_name: logpipe
image: ghcr.io/riccardobl/logpipe:0.0.5
image: ghcr.io/riccardobl/logpipe:0.0.6
restart: unless-stopped
healthcheck:
<<: *healthcheck
test: ["CMD", "curl", "-f", "http://localhost:7068/health"]
expose:
- "7068:7068"
environment:
- LOGPIPE_DEBUG=true
ports:
- "7068"
- "7068:7068"
tmpfs:
- /tmp
cpu_shares: "${CPU_SHARES_LOW}"
Expand Down
4 changes: 2 additions & 2 deletions lib/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ export class ConsoleLogAttachment extends LogAttachment {
const second = ('0' + date.getSeconds()).slice(-2)
head += `[${year}-${month}-${day} ${hour}:${minute}:${second}] `
}
head += `[${logger.name}] `
head += `[${logger.name}]`
if (!isBrowser) {
head += `[${LogLevel[level]}] `
head += ` [${Object.entries(LogLevel).find(([k, v]) => v === level)[0]}]`
}

const tail = tags.length ? ` ${tags.join(',')}` : ''
Expand Down

0 comments on commit 6c8ae32

Please sign in to comment.