Is there a pattern when coding for .NET C# as to where to look for feedback logs when running a program?

1    28 Apr 2018 23:47 by u/Anson

I'm not sure if I'm asking the right question here, but there's some guy that I work with who has a few years seniority on me that seems to know exactly where to look for any given log showing the problem. He then reads the exact relevant line from the log, and the problem is fixed.

^ that general description is what made me think of this question.

I'm aware of Android's Log.v(), Log.d(), Log.i(), Log.w(), and Log.e(). And Linux's common logs (feel free to make me aware of other relevant logs if they're not on this list)

 /var/log/messages : General message and system related stuff
    /var/log/auth.log : Authenication logs
    /var/log/kern.log : Kernel logs
    /var/log/cron.log : Crond logs (cron job)
    /var/log/maillog : Mail server logs
    /var/log/qmail/ : Qmail log directory (more files inside this directory)
    /var/log/httpd/ : Apache access and error logs directory
    /var/log/lighttpd/ : Lighttpd access and error logs directory
    /var/log/boot.log : System boot log
    /var/log/mysqld.log : MySQL database server log file
    /var/log/secure or /var/log/auth.log : Authentication log
    /var/log/utmp or /var/log/wtmp : Login records file
    /var/log/yum.log : Yum command log file.

As I was writing this I gave it a quick search and found this https://cmatskas.com/an-introduction-to-common-logging-api-2/

Is there anything outside of this that I should know?

4 comments

0

Look at the code and config files. It will tell you where the logging is. It could be a file or the event log or somewhere else. But there will probably be config and definitely a call to the log method. Log4Net is probably the most common file logging reference used.

https://logmatic.io/blog/logging-in-net-the-power-of-c-logs/

0

will check it out, thx

0

Shouldn't you be able to work this minor issue out for yourself, given you're a TRAINED programmer? It seems fairly obvious to me, Also won't the guy tell you? I HATE people like that at work, but I also don't like to help others whom I'm COMPETING with for JOB ADVANCEMENT. I never ask anyone for anything.

0

I figured it out shortly after i posted this. At least, I'm pretty sure I figured out the whole thing.