Skip to content
Advertisement

Tag: logging

Redirecting stdout and stderr to a file in c++

I am trying to redirect stdout and stderr to a log file. This is what i am doing. But still i am missing out some of the logs. I came to know that when i executed my application commenting out these lines of code. I am dubious about this code snippet. Please provide your feedback on this. Answer first close

Linux cut pattern from log file

i have json log file but theres not only json i need to cut/remove everything what isnt json, structure looks like this: i tried cut -d command but it doesnt work for me Answer This did the work:

Linux kernel : logging to a specific file

I am trying to edit the linux kernel. I want some information to be written out to a file as a part of the debugging process. I have read about the printk function. But i would like to add text to a particular file (file other from the default files that keep debug logs). To cut it short: I would

Advertisement