Comments (4)
ampm won't know anything about your source code, so yes, you'd need to send it things like line numbers and file names. If AMPMClient.cpp could be changed such that it had an error method which automatically collected that info and sent it on to ampm, that would be most welcome.
The JavaScript client does send the stack trace and line numbers on errors, maybe you could do similar for c++.
https://github.com/stimulant/ampm/blob/master/samples/web/libs/ampm.js#L134
from ampm.
The current AMPMClient.cpp sends through line and lineNum to the server, but these are ignored by the server?
I'm happy just prepending the location data to the message, but looking at AMPMClient.cpp made me think this wasn't expected.
from ampm.
I looked into this. The log object is making it through to _logMessage
here, but only the .message
attribute ends up in the log file.
https://github.com/stimulant/ampm/blob/master/model/logging.js#L215
AMPMClient.cpp probably shouldn't construct a message object like that, because you'd reasonably assume something is happening with the other attributes... but it's not. A great PR would be to change it to examine the level
to see if it's error, and if so, construct a string with all the info you want in it, which is what the JavaScript client does.
from ampm.
Okay, that makes sense to me. The file and line number already have to come from the client app, so we might as well bake it into the message on the client side (which is what I ended up doing).
from ampm.
Related Issues (20)
- sending events / logs with unicode chars HOT 7
- Space in user path error? HOT 8
- Support for arbitrary commands
- Support comments in config files HOT 1
- Support for custom branding
- Debug mode
- rewrite/refactor/update
- ampm portfolio
- Screenshot support for Raspberry Pi? HOT 2
- Monitor console output of launched app HOT 1
- Have ampm serve it's own Javascript client library
- Support multiple sideCommand items. HOT 1
- Google Analytics events cap HOT 5
- Possible to update "heartbeatTimeout" from app via OSC? HOT 3
- ampm on linux? HOT 2
- Limit the rate of emails
- Bad path to server.js, in start.js. ampm never starts HOT 6
- restart app on crash HOT 1
- Java Application Monitoring HOT 3
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 ampm.