logger.cpp

Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Resolve the merge conflicts of master into logging (#1 pass)

- This the first pass of the merging otherwise the code cannot be merged and committed.

- Next need to look at the code completely and see what has been merged and resolved automatically by git.

  1. … 71 more files in changeset.
4246: Merge Newly added Squish API Messages into Dial-In

- Has not been merged yet but preparing for.

  1. … 15 more files in changeset.
3883: Coverage

__________________________________________________________________________________

Behrouz NematiPour

bNematiPour@diality.com

  1. … 9 more files in changeset.
DEN-4002: Implementation 2 [SRSUI 476: Log files rotation]

__________________________________________________________________________________

Behrouz NematiPour

bNematiPour@diality.com

  1. … 4 more files in changeset.
DEN-4002: Implementation 2 [SRSUI 476: Log files rotation]

__________________________________________________________________________________

Behrouz NematiPour

bNematiPour@diality.com

  1. … 5 more files in changeset.
DEN-4002: Implementation 2 [SRSUI 476: Log files rotation]

__________________________________________________________________________________

Behrouz NematiPour

bNematiPour@diality.com

  1. … 47 more files in changeset.
DEN-4002: Implementation 2 [SRSUI 476: Log files rotation]

__________________________________________________________________________________

Behrouz NematiPour

bNematiPour@diality.com

  1. … 7 more files in changeset.
Updated the Copyright with the current year and replaced tabs with 4 spaces

  1. … 198 more files in changeset.
DEN-3880 : Implementation

- Added application name and version in the log.

__________________________________________________________________________________

Behrouz NematiPour

bNematiPour@diality.com

  1. … 2 more files in changeset.
DEN-3874 : HW Support [Per Peman's Email]

- Unified All the Data messages to use the newly created parent model MAbstract.

- Cleaned up the logging class.

- Removed log_once macros.

__________________________________________________________________________________

Behrouz NematiPour

bNematiPour@diality.com

  1. … 31 more files in changeset.
DEN-3880 : Implementation

- Added Alarm Triggered Model

- Added Alarm Cleared Model

- Added Treatment State Model

- "UI," as Event Source to the Initialized and Some Other Event Messages for better logging

- Updated Ack messages and made them nicer for logging.

- Added DGCheckIn as a message to be logged.

- Stored Unit texts as a read only property in Variables qml file which had multiple definition multiple places.

- Changed the toString of models to use comma instead of parenthesis to be easily used in Excel as a CSV file format.

- Found a bug in TreatmentAdjustmentUltrafiltrationConfirm Screen slot which had volume defined as int that actually is a float value and causes the float to be truncated also the volume should be traslated int the VTreatmentAdjustmentUltrafiltratinConfirm to mL from Liter. Although HD wasn't using that value and was not complaining about it.

- Changed the current pew-set Volume value in the TreatmentAdjustmentUltrafiltrationEdit screen to be the current max value which is actually going to be changed by user.

- Changed to use the reference Volume to be used as the current collected volume in the Ultrafiltration section of the main treatment screen and the other Ultrafiltration adjustment screen that using it (Start. Paused, Edit).

- Added toString to the request models to be used for logging.

- Refactored the Message Interpreter response methods to be unique like the other improved latest methods (get<Method>s removed) [Reordered, Document cleanup, and so].

- Updated the manual in the MModel header for creating a model in regards to refactoring above.

- Updated Response Models in regards to the refactoring above.

- Made each byte space separator in Flags class in Types class for cleaner logging (will be used empty string in Alarm Status for logging).

- Changed the logging folder to be log folder (not event, error) and changed the log file extension for events/data to be .log and for errors to be .err.

- log file format modified to be CSV.

- Removed a not used fromByteArrayState method of mtreatmentadjustmentultrafiltrationconfirmresponse , mtreatmentadjustmentultrafiltrationeditresponse.

________________________________________________________________________________

Behrouz NematiPour

bNematiPour@diality.com

  1. … 62 more files in changeset.
DEN-2236_UI100%CoverageoftheApplicationSoftware

__________________________________________________________________________________

Behrouz NematiPour

bNematiPour@diality.com

  1. … 9 more files in changeset.
DEN-2236_UI100%CoverageoftheApplicationSoftware

__________________________________________________________________________________

Behrouz NematiPour

bNematiPour@diality.com

  1. … 16 more files in changeset.
DEN-2236_UI100%CoverageoftheApplicationSoftware

- Fixed the dev build version for every build

- Fixed alarm status notification

__________________________________________________________________________________

Behrouz NematiPour

bNematiPour@diality.com

  1. … 3 more files in changeset.
DEN-2236_UI100%CoverageoftheApplicationSoftware

- Removed manual test

__________________________________________________________________________________

Behrouz NematiPour

bNematiPour@diality.com

DEN-2236_UI100%CoverageoftheApplicationSoftware

- tst_utilities and tst_logging are now 100% covered.

- Changed the TouchRect parent from Item to Rectangle to be identified by Squish Qt as an object on its parent.

__________________________________________________________________________________

Behrouz NematiPour

bNematiPour@diality.com

  1. … 7 more files in changeset.
Code Review Comments

- Dara also mentioned I need to have copyright at the beginning of the scripts.

__________________________________________________________________________________

Behrouz NematiPour

bNematiPour@diality.com

  1. … 13 more files in changeset.
Final CleanUp of the Test

- to be able to use it as a reference to make it officially as part of the main code.

__________________________________________________________________________________

Behrouz NematiPour

bNematiPour@diality.com

  1. … 7 more files in changeset.
Disabled the logging

__________________________________________________________________________________

Behrouz NematiPour

bNematiPour@diality.com

  1. … 1 more file in changeset.
DEN-2089 : Test Current Design

- Added a Test log which has a different format and logs in the log/test folder.

__________________________________________________________________________________

Behrouz NematiPour

bNematiPour@diality.com

  1. … 4 more files in changeset.
DEN-1714 : Implementation

- Added cppcheck output.

- Added Linux signal handler to quit the application gracefully.

- Added manual coco validation. // coco begin validated:

  1. … 25 more files in changeset.
DEN-1714 : Implementation

  1. … 30 more files in changeset.
Merge branch 'master' into DEN-1396_LogHandler

  1. … 36 more files in changeset.
DEN-1714 : Implementation

  1. … 18 more files in changeset.
DEN-1437 : Implementation

- Added console out coloring for Error logs to be able to debug easier.

DEN-1437 : Implementation

- Changed 2019-2019 in copyright to 2019-2020.

  1. … 59 more files in changeset.
DEN-1617 : Implementation - Alarm Logging and Acknowledgment

- Added unit tests for logging

- Added unit tests for Alarm message.

- Tested the logging and export with more than 150MB log and it took ~10 sec to copy so added some feature to disable USB/Export buttons during export.

- Instead of using QtCuncorrent which is asynchronous moved logger to a thread to take advantage of the Signal/Slot queue between threads to have events logged in order.

- Move USB/Export buttons on Treatment Screen.

- Moved export from file handler into Logger.

  1. … 22 more files in changeset.
DEN-1617 : Implementation - Alarm Logging and Acknowledgment

- Added threading to other classes (Application / Gui controller, ...) and restructured the threading to meed the Qt limitation.

- Documented the code

- Ran cppCheck again

- Cleaned the includes and using namespace (They have left after so many changes and some were useless.)

- Added _init flag for init methods so not to be able to call them twice.

- Added another init method with the thread parameter to be able to pass the thread of the class and also be able to use the class without any thread for unit tests.

- Created a Threads namespace to gather all the threads in one place.

- Update the unit tests as well. [to make it work with the new structure/threading.]

  1. … 35 more files in changeset.
DEN-1617 : Implementation - Alarm Logging and Acknowledgment

- Added Threading structure for USBWatcher and FileHandler

  1. … 11 more files in changeset.
DEN-1617 : Implementation - Alarm Logging and Acknowledgment

- Alarm Logging has been added

- Some other changes has been done to the code and messaging.

- Acknowledgment is not done [ Had an agreement with Sean for design but needs more time and we need to do it all together.]

  1. … 36 more files in changeset.