November Papa Mike

    This package has been deprecated

    Author message:

    use @nextcloud/logger

    nextcloud-logger

    0.0.6 • Public • Published

    nextcloud-logger

    Generic JavaScript logging interface for Nextcloud apps and libraries

    Usage

    import { getLoggerBuilder } from 'nextcloud-logger'
     
    const logger = getLoggerBuilder()
        .setApp('mail')
        .setUid('christoph')
        .build()
     
    logger.debug('hello')
    logger.error('this should not have happened', { someContext: 13 })
    logger.warn('it\'s just a warning, carry on')

    Right now the package uses window.console as log appender and produces the following output

    [DEBUG] mail: hello { app: 'mail', uid: 'christoph' }
    [ERROR] mail: this should not have happened { app: 'mail', uid: 'christoph', someContext: 13 }
    [WARN] mail: it's just a warning, carry on { app: 'mail', uid: 'christoph' }
    

    Keywords

    Install

    npm i nextcloud-logger

    DownloadsWeekly Downloads

    3

    Version

    0.0.6

    License

    GPL-3.0-or-later

    Unpacked Size

    53.6 kB

    Total Files

    19

    Last publish

    Collaborators

    • pytal
    • gretadoci
    • mejo-
    • artonge
    • max-nextcloud
    • st3iny
    • marcoambrosinii
    • icewind1991
    • skjnldsv
    • christophwurst
    • juliushaertl
    • nickvergessen
    • georgehrke