npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@ibm-wch-sdk/log4js-logger

v7.2.608

Published

Support package for @ibm-wch-sdk/ng to add logging.

Downloads

33

Readme

Logging implementation for ibm-wch-sdk-ng based on ng2-logger.

Changes

CHANGELOG

Usage

Install via npm

npm install --save ibm-wch-sdk-ng-logger

Add to your application module:

import { WchNgLoggingModule } from 'ibm-wch-sdk-ng-logger';

@NgModule({
  imports: [
    WchNgLoggingModule.forRoot(),
  ]
})

Configuration

You can enable logging for certain logging levels or modules by either providing a config object to the module, setting variables on localStorage or by setting a cookie. Both approaches use the same keys and expect string array serialized in JSON format as a value.

Modules

Use Ng2LoggerFactory.onlyModules as the key. The value array lists names of the modules or a regular expression string matching the modules. See the documentation for ng2-logger for more details.

Levels

Use Ng2LoggerFactory.onlyLevel as the key. The value array lists the logging levels, e.g DATA, INFO, WARN or ERROR. See the documentation for ng2-logger for more details.

Example

Enable logging just for the AbstractNavigationComponent via the local storage. In the console of your browser type:

localStorage.setItem('Ng2LoggerFactory.onlyModules', JSON.stringify(['AbstractNavigationComponent']))

Class documentation

Refer to the documentation.

Changelog

Current

Changed

  • Using ng2-logger/client instead of ng2-logger

Added

  • Adding support for cookie based logging config

5.0.223

Added

  • Initial version

@ibm-wch-sdk/log4js-logger

Index

External modules


@ibm-wch-sdk/log4js-logger > "module"

External module: "module"

Index

Classes


@ibm-wch-sdk/log4js-logger > "public_api"

External module: "public_api"

Index


@ibm-wch-sdk/log4js-logger > "services/logger.factory"

External module: "services/logger.factory"

Index

Classes


@ibm-wch-sdk/log4js-logger

Index

External modules


@ibm-wch-sdk/log4js-logger > "module" > WchLog4jsLoggingModule

Class: WchLog4jsLoggingModule

Hierarchy

WchLog4jsLoggingModule

Index

Constructors

Methods


Constructors

constructor

new WchLog4jsLoggingModule(parentModule: WchLog4jsLoggingModule): WchLog4jsLoggingModule

Defined in module.ts:27

Parameters:

| Name | Type | | ------ | ------ | | parentModule | WchLog4jsLoggingModule |

Returns: WchLog4jsLoggingModule


Methods

<Static> forRoot

forRoot(): ModuleWithProviders

Defined in module.ts:22

Returns: ModuleWithProviders


@ibm-wch-sdk/log4js-logger > "services/logger.factory" > Log4jsLoggerService

Class: Log4jsLoggerService

Hierarchy

Log4jsLoggerService

Implements

  • LoggerFactory

Index

Constructors

Methods


Constructors

constructor

new Log4jsLoggerService(): Log4jsLoggerService

Defined in services/logger.factory.ts:7

Returns: Log4jsLoggerService


Methods

create

create(name: string): Logger

Defined in services/logger.factory.ts:10

Parameters:

| Name | Type | | ------ | ------ | | name | string |

Returns: Logger