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

@acoustic-content-sdk/ng-logger

v9.0.10076

Published

Support package for @acoustic-content-sdk/ng to add logging.

Downloads

5

Readme

npm

API Documentation

Home > @acoustic-content-sdk/ng-logger

ng-logger package

Implementation of a logger service based on ng2-logger.

Classes

| Class | Description | | --- | --- | | AcNgLoggingModule | Module that provides the a logger factory based on ng2-logger. |

Interfaces

| Interface | Description | | --- | --- | | Ng2LoggerConfig | |

Variables

| Variable | Description | | --- | --- | | VERSION | Version and build number of the package |

Home > @acoustic-content-sdk/ng-logger > AcNgLoggingModule

AcNgLoggingModule class

Module that provides the a logger factory based on ng2-logger.

Signature:

export declare class AcNgLoggingModule 

Remarks

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.

For 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.

For 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.

Properties

| Property | Modifiers | Type | Description | | --- | --- | --- | --- | | VERSION | | WchSdkVersion | Exposes the version information of this module |

Methods

| Method | Modifiers | Description | | --- | --- | --- | | forRoot(aConfig) | static | Provides the module with default configuration |

Home > @acoustic-content-sdk/ng-logger > Ng2LoggerConfig

Ng2LoggerConfig interface

Signature:

export interface Ng2LoggerConfig 

Properties

| Property | Type | Description | | --- | --- | --- | | onlyLevel | ObservableOrT<string[]> | Logging configuration for levels https://github.com/darekf77/ng2-logger#selective-debug---global-settings | | onlyModules | ObservableOrT<string[]> | Logging configuration for modules https://github.com/darekf77/ng2-logger#specifying-onlymodules-as-regular-expressions |

Home > @acoustic-content-sdk/ng-logger > VERSION

VERSION variable

Version and build number of the package

Signature:

VERSION: {
    version: {
        major: string;
        minor: string;
        patch: string;
        branch: string;
    };
    build: Date;
}

Home > @acoustic-content-sdk/ng-logger > Ng2LoggerConfig > onlyLevel

Ng2LoggerConfig.onlyLevel property

Logging configuration for levels

https://github.com/darekf77/ng2-logger#selective-debug---global-settings

Signature:

onlyLevel?: ObservableOrT<string[]>;

Home > @acoustic-content-sdk/ng-logger > Ng2LoggerConfig > onlyModules

Ng2LoggerConfig.onlyModules property

Logging configuration for modules

https://github.com/darekf77/ng2-logger#specifying-onlymodules-as-regular-expressions

Signature:

onlyModules?: ObservableOrT<string[]>;

Home > @acoustic-content-sdk/ng-logger > AcNgLoggingModule > VERSION

AcNgLoggingModule.VERSION property

Exposes the version information of this module

Signature:

VERSION: WchSdkVersion;

Home > @acoustic-content-sdk/ng-logger > AcNgLoggingModule > forRoot

AcNgLoggingModule.forRoot() method

Provides the module with default configuration

Signature:

static forRoot(aConfig?: Ng2LoggerConfig): ModuleWithProviders;

Parameters

| Parameter | Type | Description | | --- | --- | --- | | aConfig | Ng2LoggerConfig | optionally the configuration of the logger |

Returns:

ModuleWithProviders

the preconfigured module