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

Implement Zap logger #28

Merged
merged 2 commits into from
Jun 13, 2024
Merged

Conversation

sudiptob2
Copy link
Collaborator

@sudiptob2 sudiptob2 commented May 30, 2024

I reviewed the implementation of zap in the ynikorn-core repository. In this PR, I've included a trimmed-down version based on their approach. I would greatly appreciate your feedback to determine if this is something we can proceed with.

Logs are saved into a file as well as into standard out.
Tasks

  • Configure log package
  • Some sample refactor of the current print statements

Output

image

@sudiptob2 sudiptob2 marked this pull request as ready for review May 30, 2024 13:22
@sudiptob2 sudiptob2 marked this pull request as draft June 7, 2024 21:50
@sudiptob2 sudiptob2 force-pushed the feat/configure-zap-logger branch from 926fc7a to 0485127 Compare June 10, 2024 15:42
@sudiptob2 sudiptob2 marked this pull request as ready for review June 10, 2024 15:42
@sudiptob2 sudiptob2 force-pushed the feat/configure-zap-logger branch from 2be795b to 713f1ef Compare June 10, 2024 15:50
log/logger.go Outdated Show resolved Hide resolved
@sudiptob2 sudiptob2 force-pushed the feat/configure-zap-logger branch from fea44af to f741e78 Compare June 13, 2024 15:48
@sudiptob2 sudiptob2 requested a review from richscott June 13, 2024 15:50
@richscott richscott merged commit e45967a into G-Research:main Jun 13, 2024
7 checks passed
dejanzele pushed a commit to dejanzele/yunikorn-history-server that referenced this pull request Jun 24, 2024
* initial zap logger configuration.

* update the default path of yhs logs.
dejanzele pushed a commit to dejanzele/yunikorn-history-server that referenced this pull request Jun 28, 2024
* initial zap logger configuration.

* update the default path of yhs logs.
@sudiptob2 sudiptob2 changed the title Configure Zap logger Implement Zap logger Jul 1, 2024
@sudiptob2 sudiptob2 deleted the feat/configure-zap-logger branch July 17, 2024 18:54
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