Click here to Skip to main content
15,946,342 members
Home / Discussions / C#
   

C#

 
PinnedHOW TO ANSWER A QUESTION PinPopular
Chris Maunder12-Jul-09 22:36
cofounderChris Maunder12-Jul-09 22:36 
PinnedHow to get an answer to your question Pin
Chris Maunder10-Nov-05 16:31
cofounderChris Maunder10-Nov-05 16:31 
QuestionDPI issue when calling C# from C++ Pin
JudyL_MD14hrs ago
JudyL_MD14hrs ago 
AnswerRe: DPI issue when calling C# from C++ Pin
Richard Andrew x6412hrs 57mins ago
professionalRichard Andrew x6412hrs 57mins ago 
GeneralRe: DPI issue when calling C# from C++ Pin
JudyL_MD7hrs 39mins ago
JudyL_MD7hrs 39mins ago 
QuestionLog file advice? Pin
geomeo12318-Jul-24 15:12
geomeo12318-Jul-24 15:12 
AnswerRe: Log file advice? Pin
jschell19-Jul-24 13:24
jschell19-Jul-24 13:24 
First of course be aware of your user base. You are collecting information about them by doing that and there might be customer relation problems with that. And legal ones as well.

Other than that all your are doing is collecting data remotely from an application. There are many ways to do that.


geomeo123 wrote:
if there's a way to do that possibly on Github


As in that there is a library for that? Or that you want the data stored on Github? For the first I am certain there is. As for the second that wouldn't be my choice.


geomeo123 wrote:
thinking about logging some try/catch handler errors


You should create a code API that logs the following
- location. File/method.
- Text that describes what it is
- Additional information. This would be where you put exceptions, including stack traces.

Then you call that where ever you want.

There are specific libraries that provide 'logging'. In C# I have used log4net and Nlog.

That provides the API that I mentioned ready to go. It does not however provide the 'destination'. I know you can find addins to log to databases. I suspect others.

Another problem you will have is that since your application is remoting pushing data then someone might do something malicious to abuse your system. Basically you need to figure they will attempt this. So at a minimum you need to provide credentials. Although that probably is not enough. You might want to throttle as well so if they hack your app they can't just start blasting away.

There are services that provide APIs that collect data also.
GeneralRe: Log file advice? Pin
Richard Andrew x6420-Jul-24 14:37
professionalRichard Andrew x6420-Jul-24 14:37 
QuestionTables not appearing as classes Pin
Hesam emami9-Jul-24 23:17
Hesam emami9-Jul-24 23:17 
AnswerRe: Tables not appearing as classes Pin
Dave Kreskowiak10-Jul-24 2:56
mveDave Kreskowiak10-Jul-24 2:56 
GeneralRe: Tables not appearing as classes Pin
Hesam emami10-Jul-24 11:37
Hesam emami10-Jul-24 11:37 
GeneralRe: Tables not appearing as classes Pin
Dave Kreskowiak10-Jul-24 11:44
mveDave Kreskowiak10-Jul-24 11:44 
AnswerRe: Tables not appearing as classes Pin
RedDk10-Jul-24 14:15
RedDk10-Jul-24 14:15 
QuestionPrint and Print Preview of Web Page not Working Properly in Microsoft Edge Browser Pin
Fokwa Divine3-Jul-24 3:54
Fokwa Divine3-Jul-24 3:54 
AnswerRe: Print and Print Preview of Web Page not Working Properly in Microsoft Edge Browser Pin
jschell3-Jul-24 6:00
jschell3-Jul-24 6:00 
GeneralRe: Print and Print Preview of Web Page not Working Properly in Microsoft Edge Browser Pin
Fokwa Divine3-Jul-24 6:05
Fokwa Divine3-Jul-24 6:05 
AnswerRe: Print and Print Preview of Web Page not Working Properly in Microsoft Edge Browser Pin
RedDk3-Jul-24 6:54
RedDk3-Jul-24 6:54 
GeneralRe: Print and Print Preview of Web Page not Working Properly in Microsoft Edge Browser Pin
Fokwa Divine3-Jul-24 7:20
Fokwa Divine3-Jul-24 7:20 
GeneralRe: Print and Print Preview of Web Page not Working Properly in Microsoft Edge Browser Pin
RedDk3-Jul-24 7:54
RedDk3-Jul-24 7:54 
GeneralRe: Print and Print Preview of Web Page not Working Properly in Microsoft Edge Browser Pin
Fokwa Divine9-Jul-24 2:31
Fokwa Divine9-Jul-24 2:31 
Questionmulti tcp clients Pin
darinka2-Jul-24 10:56
darinka2-Jul-24 10:56 
AnswerRe: multi tcp clients Pin
OriginalGriff2-Jul-24 21:37
mveOriginalGriff2-Jul-24 21:37 
GeneralRe: multi tcp clients Pin
darinka3-Jul-24 2:05
darinka3-Jul-24 2:05 
AnswerRe: multi tcp clients Pin
jschell3-Jul-24 6:14
jschell3-Jul-24 6:14 
GeneralRe: multi tcp clients Pin
darinka3-Jul-24 6:59
darinka3-Jul-24 6:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.