0

I ve a main program that initializes syslog, this program can run multiple threads, the problem is, when a thread exit, i find only a part of their logs in syslog file, what is the problem please?

elhadi dp ıpɐɥןǝ
  • 4,763
  • 2
  • 30
  • 34

2 Answers2

0

You should flush your buffers.

René Kolařík
  • 1,244
  • 1
  • 10
  • 18
0

after some tests i ve found the solution, use LOG_EMERG instead of LOG_INFO or LOG_DEBUG, this will let syslog make great priority to the message, so my thread messages are no longer lost.

elhadi dp ıpɐɥןǝ
  • 4,763
  • 2
  • 30
  • 34