Skip to content

Conversation

@loerac
Copy link
Owner

@loerac loerac commented Aug 27, 2020

Synopsis:

Add the ability to log for both the app and machine.

Description:

Both the app and machine should log their error/info messages. Both of them log to the same file under a specific identity, (app="cat-app", machine="cat-machine", rest-api="rest-api"). This will make it easier to find and save any issues that occur.

There is a rollover initialization that will take the existing log file and then add a timestamp to it before starting a new log file.

Test:

  • Logs being rolled over and creating a new log file
    image

  • Logs being added
    image

NOTE: Will add show more test when I get home

loerac and others added 13 commits August 24, 2020 15:44
On initialization, it'll check if there exists an existing log file. If so, prepend filename with a timestamp, and then make a new file.
On creation of a new logger, give them the File pointer to the file so they can write to the file with their prefix
On initialization, it'll check if there exists an existing log file. If so, prepend filename with a timestamp, and then make a new file.
On creation of a new logger, give them the File pointer to the file so they can write to the file with their prefix
The logs from cat-app will be in the same file as cat-machine
The exception errors will be printed pretty
A pointer to the open file was causing problems on others to use the file
Logging: Instead of having all the logs as 'error', changed some to be 'info'
Label: Instead of printing some error messages to the screen, display them on the app
Logging: Instead of having all the logs as 'error', changed some to be 'info'
Label: Instead of printing some error messages to the screen, display them on the app
Naming it logger doesn't sound right, I like golog/Golog better
errno, os, ConnectionError
loerac added a commit that referenced this pull request Aug 29, 2020
Once TID #3 is complete, update the "/feedNow" REST API to use the servo motors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants