
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
@hutechwebsite/debitis-magnam-eos-mollitia
Advanced tools
[tests]: https://img.shields.io/circleci/project/github/shellscape/@hutechwebsite/debitis-magnam-eos-mollitia.svg [tests-url]: https://circleci.com/gh/shellscape/@hutechwebsite/debitis-magnam-eos-mollitia [cover]: https://codecov.io/gh/shellscape/@hutechw
@hutechwebsite/debitis-magnam-eos-mollitia is a modern logging library for Node.js and modern browsers, written with modern patterns and practices which provides log level mapping of the console object.
For browser use, or use in client-side applications, @hutechwebsite/debitis-magnam-eos-mollitia should be bundled by your preferred bundler or compiler, such as Rollup.
First thing's first, install the module:
npm install @hutechwebsite/debitis-magnam-eos-mollitia --save
Users can choose to use @hutechwebsite/debitis-magnam-eos-mollitia in Node.js or in the client (browser).
const log = require('@hutechwebsite/debitis-magnam-eos-mollitia');
log.info('bananas!');
By default @hutechwebsite/debitis-magnam-eos-mollitia ships supporting the following log level name-value
pairs:
{
TRACE: 0,
DEBUG: 1,
INFO: 2,
WARN: 3,
ERROR: 4,
SILENT: 5
}
When requiring @hutechwebsite/debitis-magnam-eos-mollitia in Node.js the default export will be an instance of LogLevel wrapped with some extra sugar.
Please see LogLevel for documentation of all methods and properties of every log instance, including the default instance.
trace, debug, info, warn, errorThese methods correspond to the available log levels and accept parameters identical to their console counterparts. e.g.
console.info('...');
console.info('...');
// ... etc
create(options)Returns a new LogLevel instance. The options parameter should be an Object matching the options for the LogLevel constructor.
Note: LogLevel instances created are cached. Calling create with a previously used name will return the cached LogLevel instance. To create a different instance with the same name, assign a unique id property to the options parameter.
factoriesType: Array [ Class ]
Returns an Array containing the factory classes available within @hutechwebsite/debitis-magnam-eos-mollitia
to outside modules. Particularly useful when creating plugins. eg.
const log = require('@hutechwebsite/debitis-magnam-eos-mollitia');
const { MethodFactory } = log.factories;
class MyFactory extends MethodFactory { ... }
loggersType: Array [ LogLevel ]
Returns an Array containing references to the currently instantiated loggers.
If you're used to using plugins with loglevel, fear not. The same capabilities
are available in @hutechwebsite/debitis-magnam-eos-mollitia, but in a much more straightforward and structured
way. @hutechwebsite/debitis-magnam-eos-mollitia supports by way of "Factories." A Factory is nothing more
than a class which defines several base methods that operate on the console
and provide functionality to a LogLevel instance. All factories must inherit from the
MethodFactory class, and may override any defined class functions.
For an example factory, please have a look at the PrefixFactory
which provides similar functionality as the loglevel-prefix plugin,
and is the factory which is used when a user passes the prefix option to a
LogLevel instance.
As mentioned, @hutechwebsite/debitis-magnam-eos-mollitia is a logging library for Node.js and modern browsers, which means the latest versions of the major browsers. When bundling or compiling @hutechwebsite/debitis-magnam-eos-mollitia for use in a browser, you should ensure that appropriate polyfills are used. e.g. Internet Explorer typically requires polyfilling both Symbol and Object.assign.
This project originated as a fork of the much-loved loglevel module, but has diverged and has been rewritten, and now shares similarities only in functional intent.
Base Log SVG by Freepik from www.flaticon.com.
FAQs
[tests]: https://img.shields.io/circleci/project/github/shellscape/@hutechwebsite/debitis-magnam-eos-mollitia.svg [tests-url]: https://circleci.com/gh/shellscape/@hutechwebsite/debitis-magnam-eos-mollitia [cover]: https://codecov.io/gh/shellscape/@hutechw
We found that @hutechwebsite/debitis-magnam-eos-mollitia demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.