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

Create a local log, to a known path, with regular log messages #784

Merged
merged 12 commits into from Jan 11, 2022

Conversation

directionless
Copy link
Contributor

@directionless directionless commented Jan 6, 2022

Problem

When debugging with launcher users, it is often very hard to get the appropriate logs. This is because they logs go to different places on different platforms. (And on windows, they're especially weird)

Solution

This replaces the local debug log file option (from #639) with an always-enabled, rolling, log file. The initial implementation suffered from a couple of issues. First, it required being explicitly enabled. Second, it didn't rotate.

This also adds a periodic log message to aid in finding what host the logs are from. This checkpoint message is an initial PoC, and is expected to evolve over time.

@directionless directionless changed the title Create local, rolled, debug logs Improve debugging logs: local logs, and regular log pings Jan 6, 2022
@directionless directionless changed the title Improve debugging logs: local logs, and regular log pings Create a local log, to a known path, with regular log messages Jan 7, 2022
@directionless directionless marked this pull request as ready for review January 7, 2022 00:34
Copy link
Contributor

@blaedj blaedj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@directionless directionless merged commit 50601c4 into kolide:master Jan 11, 2022
@directionless directionless deleted the seph/debug-logs-locally branch January 11, 2022 19:36
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.

None yet

2 participants