Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What do you think of saving stack trace in a special log table?

Suppose, you have a special log table of your application.

What do you think about creating a BLOB field for a possible stack trace ?

Logging is done to file as well, but it is not so convenient to read a text file, moreover database is more "accessible".

like image 845
EugeneP Avatar asked Jan 18 '26 01:01

EugeneP


1 Answers

Duplicate logging sounds like... well, duplicate logging. Overhead. If you need to access the logs through database, I would rather use/write a tool that can import the logs to a separate database when needed. Or make them accessible by some other means. One tool that I know of is Splunk, but it's expensive and I'm sure there are others too.

like image 147
fish Avatar answered Jan 20 '26 13:01

fish



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!