@soszoro/zoroeditor5-dev-utils
v20.0.3
Published
Utils for zoroeditor 5 development tools packages.
Downloads
1
Readme
zoroeditor 5 development utilities library
Usage:
const logger = require( '@soszoro/zoroeditor5-dev-utils' ).logger;
// All messages will be displayed.
const infoLog = logger( 'info' );
infoLog.info( 'Message.' );
infoLog.warning( 'Message.' );
infoLog.error( 'Message.' );
// This First message won't be displayed..
const warningLog = logger( 'warning' );
warningLog.info( 'Message.' );
warningLog.warning( 'Message.' );
warningLog.error( 'Message.' );
// Only the last message will be displayed.
const errorLog = logger( 'error' );
errorLog.info( 'Message.' );
errorLog.warning( 'Message.' );
errorLog.error( 'Message.' );