Skip to content

Latest commit

 

History

History
 
 

logger

@oxygen-ui/logger

Simple logger package for Oxygen UI.

npm (scoped) npm License

Installation

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

Usage

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);

API

logger.error(...args: Array): void

Logs an error message to the console. Accepts any number of arguments.

logger.info(...args: Array): void

Logs an info message to the console. Accepts any number of arguments.

logger.log(...args: Array): void

Logs a message to the console. Accepts any number of arguments.

logger.success(...args: Array): void

Logs a success message to the console. Accepts any number of arguments.

logger.warn(...args: Array): void

Logs a warning message to the console. Accepts any number of arguments.

Contributing

Want to report a bug, contribute some code, or improve the documentation?

Excellent! Read up on our guidelines for contributing to get started.

License

Licenses this source under the Apache License, Version 2.0 LICENSE, You may not use this file except in compliance with the License.