Skip to content

logs#4

Merged
nikandfor merged 3 commits intomainfrom
nikandfor/debug-logs
Jan 11, 2023
Merged

logs#4
nikandfor merged 3 commits intomainfrom
nikandfor/debug-logs

Conversation

@nikandfor
Copy link
Copy Markdown
Contributor

Added debug logs and also refactored error handling a bit.

Added zerolog logger. If started with CODECRAFTERS_LOG_LEVEL=debug, prints a line before each step in a command function. By default it uses json format, but pretty format can be chosen with CODECRAFTERS_LOG_FORMAT=pretty.

Timestamps can be used to find long steps.

Example
image

@nikandfor nikandfor requested a review from rohitpaulk January 8, 2023 16:25
@rohitpaulk
Copy link
Copy Markdown
Member

@nikandfor thanks, looks good! Can we switch the default format to pretty please? That seems more friendly, I'm not sure of when we'll need to use json.

@nikandfor nikandfor merged commit ccab639 into main Jan 11, 2023
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