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

no function logs by default #1474

Open
rdallman opened this issue Apr 15, 2019 · 1 comment · May be fixed by #1479
Open

no function logs by default #1474

rdallman opened this issue Apr 15, 2019 · 1 comment · May be fixed by #1479
Assignees

Comments

@rdallman
Copy link
Contributor

since we've accomplished #1055 now and the logs API is gone, there is no default logging story for functions for users that run fn start. this is kinda bad.

there are 2 ways to get logs now, neither of which are defaulted to:

  • add a syslog url to an app
  • set FN_LOG_LEVEL=debug / fn start --log-level=debug

one solution is that we could provide additional configuration to turn off the logs and allow setting the container log level, possibly defaulting to out of the box using 'info' level, but allow disabling this / setting to debug level. then users could see the logs from the fn start docker container or from their terminal in attached mode. these are not great, but a definite improvement over nothing. and having them available via docker logs allows running easy grep commands against call ids, etc.

fn start itself is a dind container, so we could do "interesting" things like leaving logs laying around in there somewhere. other ideas are welcome here.

@rdallman rdallman self-assigned this Apr 18, 2019
@ruti1012
Copy link

I'm really looking forward to better local logging for development, as setting up a syslog server just for local development seems a bit too complicated. Acessing the logs via docker logs would be super nice!

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 a pull request may close this issue.

2 participants