-
Notifications
You must be signed in to change notification settings - Fork 0
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: logger #200
base: main
Are you sure you want to change the base?
feat: logger #200
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks good and could work nicely when implemented into the existing codebase
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally good implementation (code style wise), however does not work for me yet
/** | ||
* Electron log levels enum declaration | ||
*/ | ||
export enum ElectronLogLevel { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just updating the values for these enums to numbers (as in .env) may be a good solution
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
However you need to make sure that eg. loglevel INFO also includes everything WARN & ERROR (this only makes sense)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we still need to discuss what we really want out of this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the logfile should be created in the root directory of the installation location (and not somewhere in appdata). Maybe in some subfolder logs/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be tested for an actually installed application as well as in dev environment
PR description
Describe your changes in detail here
Created a composable for a logger with electron-log and tslog
Definition Of Done (DoD)
This PR can be squashed / merged if
fixes: #167
Add additional conditions here if necessary for this PR