Home > @asl-19/js-utils > serverLog
Logs a formatted message based on the provided description, HTTP status code, and path.
Signature:
serverLog: ({ description, path, statusCode, }: {
description?: string;
path?: string;
statusCode?: number;
}) => void|
Parameter |
Type |
Description |
|---|---|---|
|
{ description, path, statusCode, } |
{ description?: string; path?: string; statusCode?: number; } |
Returns:
void
Should only be used on the server — will output a warning and return early if called from the browser.