Skip to main content

warning

Log warning messages.

Import​

import { warning } from '@evershop/evershop/lib/log';

Syntax​

warning(message: string): void

Parameters​

message

Type: string

The warning message to log.

Examples​

import { warning } from '@evershop/evershop/lib/log';

// Log warning
warning('Product stock is low');
warning(`Customer ${email} not found`);
warning('Payment gateway timeout, retrying...');

See Also​

  • error - Log errors
  • info - Log info messages
  • debug - Log debug messages