![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@liquicode/lib-logger
Advanced tools
An easy and flexible logging system. Log to console, files, etc. Now with colors!
An easy and flexible logging system. Log to console, files, etc. Now with colors!
Traditional installation for server-side platforms (nodejs/phantomjs)
npm install @liquicode/lib-logger
or: Traditional installation for client-side platforms (browser)
<bower install not yet supported>
or: Clone the source code
git clone https://github.com/agbowlin/lib-logger.git
or: Download the latest source code
https://github.com/agbowlin/lib-logger/archive/master.zip
const LIB_LOGGER = require( '@liquicode/lib-logger' );
From the library reference LIB_LOGGER
, you can create specific loggers for
different output devices or a generalized logger to render log messages on
multiple devices.
lib-logger
works with several platforms.
// Reference the library.
const LIB_LOGGER = require( '@liquicode/lib-logger' );
// Call NewShellLogger() to get a logger object that prints message to the console.
let Logger = LIB_LOGGER.NewShellLogger( 'My Optional Log Group Name' );
// Log something
Logger.LogInfo( 'Hello, World!' );
// Reference the library.
// (installed via 'bower install liqui-logger' ?)
const LIB_LOGGER = require('bower_components/liqui-logger/js/logger');
// Call NewConsoleLogger() to get a logger object that prints message to the console.
let Logger = LIB_LOGGER.NewConsoleLogger( 'My Optional Log Group Name' );
// Log something
Logger.LogInfo( 'Hello, World!' );
Logger.info( 'Hello, Again!' );
group date time ms severity message
| | | | | |
v v v v v v
==========================================
| Test Group | 2017-01-12 | 03:42:37 | 1547 | TRACE | This is a Trace message.
| Test Group | 2017-01-12 | 03:42:37 | 1548 | DEBUG | This is a Debug message.
| Test Group | 2017-01-12 | 03:42:37 | 1549 | INFO | This is an Info message.
| Test Group | 2017-01-12 | 03:42:37 | 1551 | WARN | This is a Warn message.
| Test Group | 2017-01-12 | 03:42:37 | 1552 | ERROR | This is an Error message.
==========================================
| Test Group | 2017-01-12 | 03:42:37 | 1559 | INFO | Here is some extra data:
{
"Field1": "Foo", <--- extra data
"Field2": "Bar"
}
========================================== <--- separator line
FAQs
An easy and flexible logging system. Log to console, files, etc. Now with colors!
The npm package @liquicode/lib-logger receives a total of 2 weekly downloads. As such, @liquicode/lib-logger popularity was classified as not popular.
We found that @liquicode/lib-logger 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.