Skip to content

logging: log equiv. of LOG_LEVEL=debug to files in ~/.fly/logs - #2536

Merged
alichay merged 2 commits into
masterfrom
feat/debug-log-to-file
Jul 5, 2023
Merged

logging: log equiv. of LOG_LEVEL=debug to files in ~/.fly/logs#2536
alichay merged 2 commits into
masterfrom
feat/debug-log-to-file

Conversation

@alichay

@alichay alichay commented Jul 5, 2023

Copy link
Copy Markdown

Change Summary

What and Why:

To make troubleshooting easier and issues more reproducible, we'll keep logs for the last 10 (this is a totally arbitrary number) runs of flyctl. These logs are the equivalent of LOG_LEVEL=debug, although they won't contain the actual output - only the debug logs.

How:

A lot of cleanup around logging and the terminal package. We had like four reimplementations of this logging system scattered around flyctl lmao, this consolidates most of it.

Related to: internal discussion


Documentation

  • Fresh Produce
  • In superfly/docs, or asked for help from docs team
  • n/a (this is more a tool for support rather than something user-facing)

Sorry about the mega-commit! I kind of dug myself into a hole, and had to rewrite things to get out of it - in the process I just totally lost any hope of a reasonable commit history.

Comment thread internal/logger/global_logfile.go
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.

2 participants