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

Should the logger create a Folder to store the text file if logger doesn't exist? #16

Open
paulbarron85 opened this issue Jan 4, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@paulbarron85
Copy link

paulbarron85 commented Jan 4, 2024

If the folder path doesn't exist it is not created, and the text file is not saved. Is this correct? Should it create the "C:/logs/" because it doesn't on my system. If I manually add C:/logs before running the program it works fine but if the folder isn't there to begin with I get error 1804 for fileOpen.

@bengeisler bengeisler added the enhancement New feature or request label Jan 4, 2024
@bengeisler
Copy link
Owner

Hi, thanks for reaching out! Yes, I can reproduce this. The error returned by the logger is

'Opening file failed. Error thrown by FB_FileOpen. Consult Beckhoff InfoSys. Internal Error: 1804'

Creating the directories if they don't exist would be a nice default behavior. I'll look into this 👍

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

No branches or pull requests

2 participants