mirror of
https://github.com/lldap/lldap.git
synced 2026-04-25 08:15:52 +03:00
[GH-ISSUE #588] [Feature Request] Log to log file instead of console. #214
Labels
No labels
backend
blocked
bug
cleanup
dependencies
docker
documentation
duplicate
enhancement
enhancement
frontend
github_actions
good first issue
help wanted
help wanted
integration
invalid
ldap
pull-request
question
rust
rust
tests
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/lldap-lldap#214
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Realmlist on GitHub (May 19, 2023).
Original GitHub issue: https://github.com/lldap/lldap/issues/588
Request:
Add the possibility to log to a log file instead of the console.
This is especially handy for docker, since the log file can be bound to storage outside of the docker.img, thus making it not clog up.
Reason for request:
The LLDAP log file was 25MB after running for 3 days, and I could only access it by using
docker inspectand export it throughdocker logs.@nitnelave commented on GitHub (May 19, 2023):
You can achieve that directly in docker compose: https://docs.docker.com/compose/compose-file/compose-file-v3/#logging
@Realmlist commented on GitHub (May 19, 2023):
My apologies, I was not clear in my request, I think.
I would like to have the ability to choose where the logs are stored.
Like many docker containers they're usually stored in the folder that gets linked to your host's permanent storage volume.
For example
It's mostly a QoL request, as the logs can be extracted with
docker logs, but it's just more handy to be able to see your log files through a network share. 🙂@nitnelave commented on GitHub (May 19, 2023):
Oh, right. This should also be doable in docker-compose:
command: bash -c "/app/docker-entrypoint.sh run --config-file /data/lldap_config.toml > /path/to/log/command.log 2>&1"