1.0.6 • Published 1 year ago

@bytesberry/logger v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Logger helps you write better console logs

Also available for yarn

yarn add @bytesberry/logger

Example code

import { Log } from '@bytesberry/logger';

Log.error("Some error occured!");
Log.info("Fetching data...")
Log.output("Output Array: ", outputArr);

Available Methods

MethodDescriptionExample Usage
.output()Displays the given message in green to indicate success or standard output.Log.output('Some message', outputArr); Log.output('Some message', {outputArr});
.error()Logs the message to the console in red, typically used for errors or warnings.Log.error('An error occurred!');
.info()Displays informational messages in teal, ideal for general or debug information.Log.info('Fetching data...');
1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago