-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Hi,
currently it appears the agent writes the logs into a file inside the container which makes them hard to access and inspect and eventually hard to debug when something is going wrong (i.e. connection issues). Imho writing to a file makes little sense in combination with -foreground. It is very typical for containers (i.e. in kubernetes) to simply log to stdout / stderr.
Via a bit of try and error I found the agent inside the container actually has a parameter -log-type and when setting this to -log-type=stderr it actually writes logs to stderr which is more or less what I need (although I would prefer if it writes to stdout).
So two requests:
-
Please change the default dockerfile to already include
-log-type=stderror something equivalent. -
Is the
-log-typeparameter documented somewhere? What are the possible values it has (i.e. is there something like stdout instead)?
Thanks