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

docs: add docs and some inplace fixes #21

Merged
merged 1 commit into from
Aug 1, 2024
Merged

docs: add docs and some inplace fixes #21

merged 1 commit into from
Aug 1, 2024

Conversation

tisonkun
Copy link
Contributor

@tisonkun tisonkun commented Aug 1, 2024

No description provided.

pub use stdio::*;
pub use opentelemetry::OpentelemetryLog;
#[cfg(feature = "rolling_file")]
pub use rolling_file::RollingFile;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Lift the appender to the same level for docs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But we can't hide rolling_file::RollingFile anyway?

Comment on lines +78 to 84
pub fn append(mut self, append: impl Append) -> Dispatch<true, true> {
self.appends.push(Box::new(append));

Dispatch {
filters: self.filters,
appends: vec![Box::new(append)],
appends: self.appends,
layout: self.layout,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fix a bug that previously append override the preconfigured appends.

#[derive(Debug)]
pub struct Logger {
pub struct Logger<const APPEND: bool = true> {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hide apply until at least one append are configured.

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.

1 participant