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

Log file output #160

Closed
NewKeyTo opened this issue Jul 15, 2023 · 2 comments
Closed

Log file output #160

NewKeyTo opened this issue Jul 15, 2023 · 2 comments
Labels
enhancement New feature or request new feature Proposing to add a new feature

Comments

@NewKeyTo
Copy link

1. Feature description

Allow training logs to be output to a file

2. Motivation

Adding the functionality to output logs to a file would be better

3. Your contribution

I will try to help

@NewKeyTo NewKeyTo added enhancement New feature or request new feature Proposing to add a new feature labels Jul 15, 2023
@WenjieDu
Copy link
Owner

Hi there 👋,

Thank you so much for your attention to PyPOTS! If you find PyPOTS helpful to your work, please star⭐️ this repository. Your star is your recognition, which can help more people notice PyPOTS and grow PyPOTS community. It matters and is definitely a kind of contribution to the community.

I have received your message and will respond ASAP. Thank you for your patience! 😃

Best,
Wenjie

@WenjieDu
Copy link
Owner

Hi Daozhan,

As we have discussed in private, you can make this happen with

from pypots.utils.logging import logger_creator
logger_creator.set_saving_path(".", "logs.pypots")

logger = logger_creator.logger

But please note that logger in pypots.utils.logging is with the singleton pattern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request new feature Proposing to add a new feature
Projects
None yet
Development

No branches or pull requests

2 participants