mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 15:31:16 +08:00
12 lines
492 B
TypeScript
12 lines
492 B
TypeScript
const { console } = global;
|
|
|
|
/* tslint:disable: no-console */
|
|
|
|
export const logger = {
|
|
debug: (message: any, ...rest: any[]): void => console.debug(message, ...rest),
|
|
log: (message: any, ...rest: any[]): void => console.log(message, ...rest),
|
|
info: (message: any, ...rest: any[]): void => console.info(message, ...rest),
|
|
warn: (message: any, ...rest: any[]): void => console.warn(message, ...rest),
|
|
error: (message: any, ...rest: any[]): void => console.error(message, ...rest),
|
|
};
|