Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add time and severity to log messages in entrypoint #81

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

webdevred
Copy link

This adds a log function which prints a timestamp
that is formatted the same way as the log output
from Fuseki.

I replaced all relevant uses of echo with my new function.

@webdevred
Copy link
Author

webdevred commented Nov 27, 2024

I am happy to receive any feedback.
Would it make sense to put the log function in a separate file, source it in docker-entrypoint.sh and use it in load.sh as well?
I would actually prefer a format like "2024-11-27 13:31:38" more than "13:31:38" but I am currently not sure how we could change the logging format for the Fuseki server. I think having a universal logging format for messages in the container log would be a nice improvement for when analyzing the logs.
Thanks in advance for your time!

@webdevred
Copy link
Author

bild
bild
I took some pictures =)

@webdevred webdevred force-pushed the log_time_in_entrypoint branch 8 times, most recently from 272ff81 to 430d3d6 Compare December 16, 2024 09:02
@webdevred webdevred force-pushed the log_time_in_entrypoint branch 4 times, most recently from 1bbad7d to e183b9a Compare December 18, 2024 13:24
webdevred and others added 2 commits December 18, 2024 14:28
This adds a log function which prints a timestamp
that is formatted the same way as the log output
from Fuseki.

I replaced all relevant uses of echo with my new function.
@webdevred webdevred force-pushed the log_time_in_entrypoint branch from e183b9a to 552515b Compare December 18, 2024 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant