Nose Picker's Maven

    @atomist/skill-logging
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.7 • Public • Published

    @atomist/skill-logging

    Simple API to log into the Skill log stream.

    This implementation will fall back to console.log for environments in which Google Cloud Logging is not accessible.

    Usage

    To use the Skill Log create and use a Logger as follows:

    import { createLogger } from "@atomist/skill-logging";
    
    const logger = createLogger({
        correlationId: "correlationId from the incoming message",
        workspaceId: "workspaceId of incoming message",
        skillId: "skill.id of incoming message",
        eventId: "eventId as passed into the skill via the Pub/Sub attributes",
    });
    
    // Send an debug message
    logger.debug("My %s log message", "super");
    
    // Close the logger instance to let it purge its internal queue
    await logger.close();

    Contributing

    Contributions to this project from community members are encouraged and appreciated. Please review the Contributing Guidelines for more information. Also see the Development section in this document.

    Code of conduct

    This project is governed by the Code of Conduct. You are expected to act in accordance with this code by participating. Please report any unacceptable behavior to code-of-conduct@atomist.com.

    Documentation

    Please see docs.atomist.com for developer documentation.

    Connect

    Follow @atomist and the Atomist blog.

    Support

    General support questions should be discussed in the #help channel in the Atomist community Slack workspace.

    If you find a problem, please create an issue.

    Development

    You will need to install Node.js to build and test this project.

    Build and test

    Install dependencies.

    $ npm install
    

    Use the build package script to compile, test, lint, and build the documentation.

    $ npm run build
    

    Release

    Releases are handled via the Atomist Skills. Just push a release semantic version tag to this repository.


    Created by Atomist. Need Help? Join our Slack workspace.

    Install

    npm i @atomist/skill-logging

    DownloadsWeekly Downloads

    20

    Version

    1.0.7

    License

    Apache-2.0

    Unpacked Size

    79.3 kB

    Total Files

    24

    Last publish

    Collaborators

    • atomist-bot
    • cdupuis
    • slimslenderslacks