Detalhes do pacote

aurelia-logging

aurelia50.7kMIT1.5.2

A minimal but effective logging mechanism with support for log levels and pluggable log appenders.

aurelia, logging

readme (leia-me)

aurelia-logging

npm Version ZenHub Join the chat at https://gitter.im/aurelia/discuss CircleCI

This library is part of the Aurelia platform and contains a minimal but effective logging mechanism with support for log levels and pluggable log appenders.

To keep up to date on Aurelia, please visit and subscribe to the official blog and our email list. We also invite you to follow us on twitter. If you have questions, please join our community on Gitter or use stack overflow. Documentation can be found in our developer hub. If you would like to have deeper insight into our development process, please install the ZenHub Chrome or Firefox Extension and visit any of our repository's boards.

Platform Support

This library can be used in the browser as well as on the server.

Building The Code

To build the code, follow these steps.

  1. Ensure that NodeJS is installed. This provides the platform on which the build tooling runs.
  2. From the project folder, execute the following command:

    npm install
    
  3. Ensure that Gulp is installed. If you need to install it, use the following command:

    npm install -g gulp
    
  4. To build the code, you can now run:

    gulp build
    
  5. You will find the compiled code in the dist folder, available in three module formats: AMD, CommonJS and ES6.

  6. See gulpfile.js for other tasks related to generating the docs and linting.

Running The Tests

To run the unit tests, first ensure that you have followed the steps above in order to install all dependencies and successfully build the library. Once you have done that, proceed with these additional steps:

  1. Ensure that the Karma CLI is installed. If you need to install it, use the following command:

    npm install -g karma-cli
    
  2. Ensure that jspm is installed. If you need to install it, use the following commnand:

    npm install -g jspm
    
  3. Download the SystemJS module loader:

    jspm dl-loader
    
  4. You can now run the tests with this command:

    karma start
    

changelog (log de mudanças)

1.5.2 (2019-02-04)

Bug Fixes

  • all: change es2015 back to native-modules (a84649d)

1.5.1 (2019-01-17)

  • Add module field to package.json

1.5.0 (2018-06-12)

Features

  • logging: Allow isDebugEnabled to be returned (9e7d571), closes #41

1.4.0 (2017-12-20)

Features

  • log-manager: add custom log levels (9b5b245), closes #33

1.3.1 (2017-03-26)

Bug Fixes

  • logging: restore ES5 compatibility (70bb834)

1.3.0 (2017-02-21)

1.2.0 (2016-12-03)

Features

  • logging: Allow global logLevel to be returned (1c61077)

1.1.1 (2016-11-08)

Bug Fixes

  • logging: carry a globalDefaultLevel with which subsequent loggers are created (ec9af2a)
  • logging: relax type on Logger.setLevel() for compatibility with TypeScript (d52bec2)

1.1.0

Features

  • Individual loggers now have a level property that can be used to override the default log level.

1.0.0 (2016-07-27)

1.0.0-rc.1.0.1 (2016-07-12)

1.0.0-rc.1.0.0 (2016-06-22)

1.0.0-beta.1.2.1 (2016-05-10)

1.0.0-beta.1.2.0 (2016-03-22)

  • Update to Babel 6

1.0.0-beta.1.1.2 (2016-03-01)

Bug Fixes

1.0.0-beta.1.1.1 (2016-01-28)

  • fix package metadata for jspm

1.0.0-beta.1.1.0 (2016-01-28)

Features

  • all: update for jspm and core-js (d71d0a4a)

1.0.0-beta.1 (2015-11-15)

0.9.0 (2015-11-09)

0.8.0 (2015-10-13)

Bug Fixes

  • all:
  • build:
    • update linting, testing and tools (88398cc2)
    • add missing bower bump (0a682c5e)
  • eslintrc: adjust the rules (fc14ab5a)
  • index:
  • jspm: fix jspm config. resolve #10 (5ece2e3c)
  • package:
    • correct aurelia section (acffd659)
    • update aurelia tools and dts generator (5d4190ce)
    • change jspm directories (29de7599)

Features

  • AggregateError: add ability to skip wrap if inner already exists (98da4c32)
  • all: enable error aggregation with new AggregateError (88073ddb)
  • build: update compiler and switch to register module format (7eb9aec5)
  • docs: generate api.json from .d.ts file (bac61cfe)
  • index: add the Appender interface (fe39b380)
  • logging: Add new "none" log level. (8f1ffdd6)

Breaking Changes

  • AggregateError has now been moved to the pal library.

    (16784ddf)

0.7.0 (2015-09-04)

Bug Fixes

  • all:
  • build: update linting, testing and tools (88398cc2)
  • eslintrc: adjust the rules (fc14ab5a)

Features

  • docs: generate api.json from .d.ts file (bac61cfe)

0.6.4 (2015-08-14)

Bug Fixes

  • index: remove methods from interfaces (e7d0d342)

0.6.3 (2015-08-14)

Features

  • index: add the Appender interface (fe39b380)

0.6.2 (2015-07-29)

  • Update build with better file name output

0.6.1 (2015-07-13)

Bug Fixes

  • jspm: fix jspm config. resolve #10 (5ece2e3c)

0.6.0 (2015-07-01)

Bug Fixes

  • package: update aurelia tools and dts generator (5d4190ce)

0.5.0 (2015-06-08)

0.4.0 (2015-04-30)

Bug Fixes

  • all: change levels enum to logLevel (6d1de07c, closes #7)

0.3.0 (2015-04-09)

Bug Fixes

0.2.7 (2015-03-27)

Features

  • AggregateError: add ability to skip wrap if inner already exists (98da4c32)

0.2.6 (2015-03-24)

Features

  • all: enable error aggregation with new AggregateError (88073ddb)

0.2.5 (2015-02-28)

Bug Fixes

  • package: change jspm directories (29de7599)

0.2.4 (2015-02-27)

  • Updated compiler.

0.2.3 (2015-02-18)

Bug Fixes

  • build: add missing bower bump (0a682c5e)

0.2.2 (2015-01-22)

  • Added preliminary API docs.

0.2.1 (2015-01-12)

  • Compiled output update.

0.2.0 (2015-01-06)

Features

  • build: update compiler and switch to register module format (7eb9aec5)
  • logging: Add new "none" log level. (8f1ffdd6)