Closed alexv-ds closed 1 month ago
Added the ability for options to take data from environment variables if the option is not specified in the CLI.
Example usage (docker compose):
service: my_app: image: myimage command: node main.js | npx pino-gelf log environment: PINO_GELF_HOST: log-server.host PINO_GELF_PROTOCOL: tcp PINO_GELF_RECONNECTION_DELAY: 2000 PINO_GELF_KEEP_ALIVE: false
PINO_GELF_HOST
127.0.0.1
PINO_GELF_PORT
12201
PINO_GELF_PROTOCOL
udp
PINO_GELF_MAX_CHUNK_SIZE
1420
PINO_GELF_KEEP_ALIVE
true
PINO_GELF_RECONNECTION_LIMIT
-1 (no limit)
PINO_GELF_RECONNECTION_DELAY
1000
false
Rebased master onto env-options branch
Added the ability for options to take data from environment variables if the option is not specified in the CLI.
Example usage (docker compose):
PINO_GELF_HOST
127.0.0.1
PINO_GELF_PORT
12201
PINO_GELF_PROTOCOL
udp
PINO_GELF_MAX_CHUNK_SIZE
1420
PINO_GELF_KEEP_ALIVE
true
PINO_GELF_RECONNECTION_LIMIT
-1 (no limit)
PINO_GELF_RECONNECTION_DELAY
1000
false
false