Skip to content

write logs to stdout #17

Description

@geekflyer

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:

  1. Please change the default dockerfile to already include -log-type=stderr or something equivalent.

  2. Is the -log-type parameter documented somewhere? What are the possible values it has (i.e. is there something like stdout instead)?

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions