Modify Logging functions and add fastcgi testing code

Make logging functions use c99 builtin function identifiers.

Add fastcgi test code.