Simple logger package for Oxygen UI.
To install @oxygen-ui/logger
, run the following command:
# With npm
npm install @oxygen-ui/logger
# With pnpm
pnpm add @oxygen-ui/logger
# With yarn
yarn add @oxygen-ui/logger
Here's an example of how to use @oxygen-ui/logger
:
const { logger } = require('@oxygen-ui/logger');
logger.log('====== 🧱 Started Building Primitives 🧱 ======');
logger.success(pkg.name, `🏆 Successfully wrote the transformations.`);
logger.info(pkg.name, '💭 Processing the design tokens');
logger.warn(`wrote ${file} with ${count} exports`);
logger.error(logMessageOne, logMessageTwo);
Logs an error message to the console. Accepts any number of arguments.
Logs an info message to the console. Accepts any number of arguments.
Logs a message to the console. Accepts any number of arguments.
Logs a success message to the console. Accepts any number of arguments.
Logs a warning message to the console. Accepts any number of arguments.
Want to report a bug, contribute some code, or improve the documentation?
Excellent! Read up on our guidelines for contributing to get started.
Licenses this source under the Apache License, Version 2.0 LICENSE, You may not use this file except in compliance with the License.