NSLogger implements its own atexit() function to flush on exit

Now automatically flushes all connected loggers on exit, you have nothing to do (in particular, no need to add an atexit() handler).
Merge pull request #1 from fpillet/master

update