Comments (3)
For the 1st version of the logging system, I will integrate it with LeapGestureManagement Class, which is on top of all classes.
The logging system will desgin in 3 different levels.
0 -- no logging
1 -- error message(ERRORs that make the system stop working)
2 -- debug(all the tracing information)
format of the loggin system is
[TIME][ FILE:LINE] [CLASS NAME:FUNCTION]LOGGING CONTENT
all logging information will be wrapper into the #if MACRO should not be compiled into the release binary
from leapgesture.
Here is my idea about different levels:
0 - no logging at all. Not very necessary as long as we keep level 1 concise
1 - recording. Very critical info such as "the system is initialized". Used to quickly locate which part is finished and which is next.
2 - warning. Undesired but okay issue such as "high network delay" or "one hand is missing".
3 - error. Unexpected but known issue, such as the error reported from leap
4 - panic. Something must mess up, such as malloc fails
5 - debug. Anything you want to check, but SHOULD NOT checkin.
Therefore, ideally we do not need to differentiate debug or release. But it is okay to use macro to achieve efficiece.
from leapgesture.
Another thing is that, traditionally, if we are in level 2, we should see both recording and warding. But ideally we would want to select different level to display the content only in that level, which is not efficient in performance. If it can be done, it is great. If not, probably for level 0 - 4, we do the traditional implementation. For level 5, we always display it but use a macro to make sure it is not in the release binary.
from leapgesture.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leapgesture.