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

Add options for the log in settings #333

Conversation

stdevCrow
Copy link
Contributor

Related to #298 - Log app events to file

Changes:

  • [@stdevCrow] Add a friendly ComboBox to let the user choose between different log levels
  • [@stdevCrow] Add settings's properties logLevel and logOutput
  • [@stdevCrow] Add options inside Global Settings to select the log level and the log output
  • [@stdevCrow] Minor improvements over the general layout of the Address Book section
  • [@stdevAntiD2ta] Add function LevelFromEnum
  • [@stdevAntiD2ta] Add enum for log level (This function returns a logrus.level from an enum identifier)
  • [@stdevCrow] Remove duplicated aliases
  • [@stdevCrow] Set the logOutput property's type to int
  • [@stdevCrow] Add a new property logOutputFile, in order to allow having an output log file with any name (even stdout or none) without conflicts
  • [@stdevAntiD2ta] Add configuration option outputFile, related with the previous point
  • [@stdevCrow] Cast to integer the properties logLevel and logOutput

Comments about testing , should you have some

stdevCrow and others added 22 commits January 24, 2020 15:09
Add settings's properties `logLevel` and `logOutput`
Embedd the `Settings`'s content inside a `ScrollView`
Add options inside **Global Settings** to select the log level and the log output
Improve the general layout of the **Address Book** section
…allet into stdevCrow_Add_Options_for_the_Log_in_Settings
…allet into stdevCrow_Add_Options_for_the_Log_in_Settings
… for log level

This function returns a logrus.level from an enum identifier.
Add a new property `logOutputFile`
…pipeline

Changes:
- Add a enum for output options
- In case that output is `File`, call to GetFileToLog is postponed to when outputFile option is get from the configuration options
- Changes permission of file .log created to 0344 (old: 0600)
… when settings are saved

When the output change from stderr to File(for example) the logs are written to the file with a weird format, in the other way, logs aren't written to the console
…allet into stdevCrow_Add_Options_for_the_Log_in_Settings
@stdevCrow stdevCrow added enhancement New feature or request gui Problem with the Graphic User Interface config App configuration labels Feb 6, 2020
@stdevCrow stdevCrow self-assigned this Feb 6, 2020
@olemis olemis merged commit 41cac25 into fibercrypto:develop Feb 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config App configuration enhancement New feature or request gui Problem with the Graphic User Interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants