Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2004-09

crash safe logging

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marc Santhoff

Hi,

I need to implement (or use ;) some form of crash safe logging. This means each "writeln" to the logger should update the directory entry for the log file.

How does fpc do this?
Is it enough to flush the fd to achieve this?

Any explanation or pointer to source or docs is welcome.

TIA,
Marc