Skip to content

Refactor the logging module and clean some code - #1050

Closed
Zheaoli wants to merge 1 commit into
containerd:masterfrom
Zheaoli:manjusaka/refactor-the-logging-logic
Closed

Zheaoli wants to merge 1 commit into
containerd:masterfrom
Zheaoli:manjusaka/refactor-the-logging-logic

Conversation

@Zheaoli

@Zheaoli Zheaoli commented May 10, 2022

Copy link
Copy Markdown
Member

Signed-off-by: Zheao.Li [email protected]

@Zheaoli
Zheaoli marked this pull request as draft May 10, 2022 14:24
@Zheaoli
Zheaoli marked this pull request as ready for review May 10, 2022 15:40
@Zheaoli
Zheaoli force-pushed the manjusaka/refactor-the-logging-logic branch from 96c8b2a to 233f4f1 Compare May 10, 2022 15:40
Comment thread pkg/logging/logging.go Resolved
Comment thread pkg/logging/logging.go Resolved
@Zheaoli
Zheaoli force-pushed the manjusaka/refactor-the-logging-logic branch from 233f4f1 to f4f0886 Compare May 10, 2022 19:25
@Zheaoli
Zheaoli requested a review from fahedouch May 10, 2022 19:26
@Zheaoli
Zheaoli force-pushed the manjusaka/refactor-the-logging-logic branch from f4f0886 to c6fd7fd Compare May 10, 2022 19:27
@fahedouch fahedouch added this to the v0.20.0 (tentative) milestone May 11, 2022
Comment thread pkg/logging/json_logger.go Resolved
Comment thread pkg/logging/logging.go Resolved
Comment thread pkg/logging/logging.go Resolved
@Zheaoli
Zheaoli force-pushed the manjusaka/refactor-the-logging-logic branch 2 times, most recently from a607389 to 2cd1207 Compare May 11, 2022 09:37
@Zheaoli
Zheaoli requested review from fahedouch and junnplus and removed request for fahedouch May 11, 2022 09:38
Comment thread cmd/nerdctl/run.go Resolved
@AkihiroSuda

Copy link
Copy Markdown
Member

Sorry, I don't get what is being improved in this PR

@AkihiroSuda AkihiroSuda removed this from the v0.20.0 (tentative) milestone May 11, 2022
Comment thread pkg/logging/logging.go Resolved
Comment thread pkg/logging/logging.go Resolved
@Zheaoli
Zheaoli force-pushed the manjusaka/refactor-the-logging-logic branch 3 times, most recently from 0cd2b3e to 27e4497 Compare May 11, 2022 10:27
@Zheaoli

Zheaoli commented May 11, 2022

Copy link
Copy Markdown
Member Author

@AkihiroSuda

@fahedouch and I want to enhance the log driver, see #1039

In the old version of the code, we hard-coded some json-file only logic in the logging module, I think it's not a good choice if we want to support multiple logging-driver. So I refactor the hard-coded code to Interface

@Zheaoli
Zheaoli requested review from AkihiroSuda and junnplus May 11, 2022 11:57
@fahedouch fahedouch mentioned this pull request May 11, 2022
3 of 7 tasks
@fahedouch

Copy link
Copy Markdown
Member

@AkihiroSuda, I agree with @Zheaoli , this refacto will help us handling this list of logging driver #1039

@junnplus junnplus left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

Comment thread pkg/logging/logging.go Resolved
@Zheaoli
Zheaoli force-pushed the manjusaka/refactor-the-logging-logic branch from 27e4497 to a9d161d Compare May 11, 2022 13:17
@AkihiroSuda

Copy link
Copy Markdown
Member

I think this kind of refactoring should be done when you actually implement another driver.
Hard to review whether the design is correct otherwise.

@Zheaoli

Zheaoli commented May 12, 2022

Copy link
Copy Markdown
Member Author

I think this kind of refactoring should be done when you actually implement another driver.

Hard to review whether the design is correct otherwise.

@fahedouch has worked on journal log driver base on this PR. FYI #1039 (comment)

@fahedouch

fahedouch commented May 12, 2022 •

Copy link
Copy Markdown
Member

@Zheaoli no problem, I rebased your refacto on my branch, I will try to push a PR as soon as possible. Waiting for this PR #1056 too

@Zheaoli Zheaoli closed this May 19, 2022
@Zheaoli
Zheaoli deleted the manjusaka/refactor-the-logging-logic branch January 11, 2023 03:13
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.

4 participants