clog
clog copied to clipboard
Is it thread-safe?
No, it's not. It would be really cool if it was. I don't think there's a portable way to do this in standard C, but with the right macros, I suppose it could be revised to support POSIX threads or Win32 threads... I'd welcome thoughts on this.
Will it work if an application forked say 100 processes? Even though it's not thread safe? Quite like to look of this logging library, just enough features, not too heavyweight!
Never mind I see you used write syscall, so yeah it should work with multiple processes!