@leafage/toolkit
Version:
The React Server Side Render Framework
20 lines (17 loc) • 508 B
JavaScript
/**
* @leafage/toolkit v1.3.2
*
* Copyright (c) Leafage.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/
import logger from 'consola';
export { default as logger } from 'consola';
var useLogger = function useLogger(tag) {
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
return tag ? logger.create(options).withTag(tag) : logger;
};
export { useLogger };