Skip to content

Latest commit

 

History

History
60 lines (31 loc) · 944 Bytes

File metadata and controls

60 lines (31 loc) · 944 Bytes

Home > @asl-19/js-utils > serverLog

serverLog() function

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

Parameters

Parameter

Type

Description

{ description, path, statusCode, }

{ description?: string; path?: string; statusCode?: number; }

Returns:

void

Remarks

Should only be used on the server — will output a warning and return early if called from the browser.