5 Commits (933eb36fac6b7f5fe8fe7ff62839ce5c92fff7f4)

Author SHA1 Message Date
Iain Patterson 70453ecb69 Thread safety.
Multiple threads might call error_string() so a static buffer is
dangerous.  Use TLS for a safe buffer.
14 years ago
Iain Patterson e9d9b2fa71 Fix event logging.
Some messages weren't being logged properly.  One common reason was that
one or more arguments to log_event() were longs but were interpreted
as strings.  Create a temporary buffer and sprintf the numbers to fix
that.
The other reason was that GetLastError() returns a long where a string
was expected.  Restore the previously removed error_string() function to
convert it into an error message.
14 years ago
Iain Patterson 4440946ecc Log messages properly.
Format messages from resource.  Use NSSM binary as the message source.
Note that replacing the binary is prevented if the event viewer is open.
15 years ago
Iain Patterson 06a62a665e Compile messages.
Don't spam the event log with warnings about not finding application
messages.
Every message currently uses the default event ID 1.
15 years ago
Iain Patterson d007ff22ce NSSM 1.0. 15 years ago