UNPKG

@mdfriday/foundry

Version:

The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.

26 lines 881 B
import { Logger } from './logger'; export declare class HTTPErrorLogger { private logger; constructor(logger: Logger); /** * Process HTTP error messages and log them appropriately * Similar to Go's httpErrorLog.Write method */ write(message: string): void; /** * Create a write stream compatible function for HTTP servers * This can be used with HTTP server error handlers */ getWriteFunction(): (message: string) => void; /** * Create a Node.js compatible writable stream interface * This allows the logger to be used where a writable stream is expected */ createWritableStream(): NodeJS.WritableStream; } /** * Create a new HTTP error logger * Similar to Go's NewHTTPErrorLog function */ export declare function NewHTTPErrorLogger(logger: Logger): HTTPErrorLogger; //# sourceMappingURL=http.d.ts.map