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

feat: make logging simpler to use #1499

Merged
merged 4 commits into from Mar 26, 2024
Merged

Conversation

grumbach
Copy link
Member

@grumbach grumbach commented Mar 25, 2024

Description

  • slightly simplify sn_logging useage
  • introduce logging to sn_auditor

reviewpad:summary

Comment on lines 61 to 73
.join("safe")
.join(curent_exe_name())
.join("logs")
.join(format!("log_{timestamp}")),
Copy link
Member Author

Choose a reason for hiding this comment

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

Log to safe/[exe_name]/logs/
so any app can use it and the path depends on app name.

@grumbach grumbach marked this pull request as draft March 25, 2024 11:29
@grumbach grumbach force-pushed the simple_logging branch 2 times, most recently from 734b870 to 40e64de Compare March 26, 2024 09:20
@grumbach grumbach marked this pull request as ready for review March 26, 2024 09:52
#[derive(Debug, Clone)]
pub enum LogOutputDest {
Stdout,
Path(PathBuf),
}

fn curent_exe_name() -> String {
Copy link
Member

Choose a reason for hiding this comment

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

A small typo here..

@grumbach grumbach enabled auto-merge March 26, 2024 10:34
@grumbach grumbach added this pull request to the merge queue Mar 26, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 26, 2024
@joshuef joshuef added this pull request to the merge queue Mar 26, 2024
Merged via the queue into maidsafe:main with commit 558056f Mar 26, 2024
51 checks passed
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

3 participants