Skip to content

Commit

Permalink
Improve logger path
Browse files Browse the repository at this point in the history
  • Loading branch information
essenciary committed Jan 23, 2024
1 parent 085debd commit 452f0c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Logger.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ end

function initialize_logging(; log_name = default_log_name(), log_path = Genie.config.path_log)
logger = if Genie.config.log_to_file
isdir(Genie.config.path_log) || mkpath(Genie.config.path_log)
log_path = abspath(log_path)
isdir(log_path) || mkpath(log_path)

LoggingExtras.TeeLogger(
LoggingExtras.FileLogger(joinpath(log_path, log_name), always_flush = true, append = true),
Logging.ConsoleLogger(stdout, Genie.config.log_level)
Expand Down

2 comments on commit 452f0c1

@essenciary
Copy link
Member Author

Choose a reason for hiding this comment

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

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

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

Registration pull request created: JuliaRegistries/General/99394

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v5.24.0 -m "<description of version>" 452f0c18e3f51c07f8812f133f87b0058de4c45a
git push origin v5.24.0

Please sign in to comment.