linted / Skip-Trace

Track down your lost or stolen computer
MIT License
3 stars 1 forks source link

Basic logging #12

Closed calebmckay closed 7 years ago

calebmckay commented 7 years ago

Added basic logging capabilities via Python's Logging library. Future enhancements can be made using RotatingFileHandlers instead of FileHandlers to manage log file rotation, once a rotation/preservation strategy has been determined.

linted commented 7 years ago

@calebmckay I am liking what you have done, however can we move the configdebuglog() function to a new file that both server and client pull in (import file ). I think that will cut down on code repeat and will allow us to reuse it in any future files that need it. Also can you add the path as a paramater to the function for added customization?

calebmckay commented 7 years ago

I added a whole common directory for any files shared by both server and client. These files can be copied to /root in the install script so they can be imported by the existing code files, as I did with STcommon.py, which contains the new configDebugLog.