loglevel-mixin
Advanced tools
Comparing version 6.0.2 to 6.0.3
{ | ||
"name": "loglevel-mixin", | ||
"version": "6.0.2", | ||
"version": "6.0.3", | ||
"publishConfig": { | ||
@@ -33,8 +33,8 @@ "access": "public" | ||
"ava": "^3.15.0", | ||
"c8": "^7.4.0", | ||
"documentation": "github:arlac77/documentation", | ||
"semantic-release": "^17.3.3" | ||
"c8": "^7.7.1", | ||
"documentation": "^13.2.4", | ||
"semantic-release": "^17.4.2" | ||
}, | ||
"engines": { | ||
"node": ">=12.20.1" | ||
"node": ">=14.16.1" | ||
}, | ||
@@ -41,0 +41,0 @@ "repository": { |
@@ -6,3 +6,3 @@ [![npm](https://img.shields.io/npm/v/loglevel-mixin.svg)](https://www.npmjs.com/package/loglevel-mixin) | ||
[![GitHub Issues](https://img.shields.io/github/issues/arlac77/loglevel-mixin.svg?style=flat-square)](https://github.com/arlac77/loglevel-mixin/issues) | ||
[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Farlac77%2Floglevel-mixin%2Fbadge&style=flat)](https://actions-badge.atrox.dev/arlac77/loglevel-mixin/goto) | ||
[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Farlac77%2Floglevel-mixin%2Fbadge\&style=flat)](https://actions-badge.atrox.dev/arlac77/loglevel-mixin/goto) | ||
[![Styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier) | ||
@@ -60,18 +60,18 @@ [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) | ||
- [Logger](#logger) | ||
- [Properties](#properties) | ||
- [Loglevel](#loglevel) | ||
- [Properties](#properties-1) | ||
- [defaultLogLevels](#defaultloglevels) | ||
- [declareLevels](#declarelevels) | ||
- [Parameters](#parameters) | ||
- [defineLoggerMethods](#defineloggermethods) | ||
- [Parameters](#parameters-1) | ||
- [Examples](#examples) | ||
- [LOGLEVEL](#loglevel-1) | ||
- [LogLevelMixin](#loglevelmixin) | ||
- [Parameters](#parameters-2) | ||
- [Examples](#examples-1) | ||
- [makeLogEvent](#makelogevent) | ||
- [Parameters](#parameters-3) | ||
* [Logger](#logger) | ||
* [Properties](#properties) | ||
* [Loglevel](#loglevel) | ||
* [Properties](#properties-1) | ||
* [defaultLogLevels](#defaultloglevels) | ||
* [declareLevels](#declarelevels) | ||
* [Parameters](#parameters) | ||
* [defineLoggerMethods](#defineloggermethods) | ||
* [Parameters](#parameters-1) | ||
* [Examples](#examples) | ||
* [LOGLEVEL](#loglevel-1) | ||
* [LogLevelMixin](#loglevelmixin) | ||
* [Parameters](#parameters-2) | ||
* [Examples](#examples-1) | ||
* [makeLogEvent](#makelogevent) | ||
* [Parameters](#parameters-3) | ||
@@ -84,3 +84,3 @@ ## Logger | ||
- `entry` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** | ||
* `entry` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** | ||
@@ -93,4 +93,4 @@ ## Loglevel | ||
- `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** | ||
- `priority` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** | ||
* `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** | ||
* `priority` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** | ||
@@ -101,10 +101,10 @@ ## defaultLogLevels | ||
- trace | ||
- debug | ||
- info | ||
- notice | ||
- warn | ||
- error | ||
- crit | ||
- alert | ||
* trace | ||
* debug | ||
* info | ||
* notice | ||
* warn | ||
* error | ||
* crit | ||
* alert | ||
@@ -117,3 +117,3 @@ ## declareLevels | ||
- `list` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** A list of log level names. The last name in the list will become the one with the highest priority. | ||
* `list` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** A list of log level names. The last name in the list will become the one with the highest priority. | ||
@@ -131,8 +131,8 @@ Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** levels object a hash with all the loglevels. Stored by there name. | ||
- `object` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** target where to assign properties to | ||
- `logLevels` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** Hash with all the available loglevels. Stored by there name (optional, default `defaultLogLevels`) | ||
- `theFunction` **[Logger](#logger)** to be added under the loglevel name. | ||
This function will only be called if the current loglevel is greater equal | ||
the log level of the called logging function. | ||
By default a method log(level,message) will be used | ||
* `object` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** target where to assign properties to | ||
* `logLevels` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** Hash with all the available loglevels. Stored by there name (optional, default `defaultLogLevels`) | ||
* `theFunction` **[Logger](#logger)** to be added under the loglevel name. | ||
This function will only be called if the current loglevel is greater equal | ||
the log level of the called logging function. | ||
By default a method log(level,message) will be used | ||
@@ -159,5 +159,5 @@ ### Examples | ||
- `superclass` **class** class to be extendet | ||
- `logLevels` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** Object with all the available loglevels. Stored by their name (optional, default `defaultLogLevels`) | ||
- `initialLogLevel` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** the default value for the logLevel property (optional, default `defaultLogLevels.info`) | ||
* `superclass` **class** class to be extendet | ||
* `logLevels` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** Object with all the available loglevels. Stored by their name (optional, default `defaultLogLevels`) | ||
* `initialLogLevel` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** the default value for the logLevel property (optional, default `defaultLogLevels.info`) | ||
@@ -183,5 +183,5 @@ ### Examples | ||
- `severity` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** log severity | ||
- `arg` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \| [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object))** original log message - level may be overwritten | ||
- `args` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** additional values to be merged into the final log event - values have precedence | ||
* `severity` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** log severity | ||
* `arg` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object))** original log message - level may be overwritten | ||
* `args` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** additional values to be merged into the final log event - values have precedence | ||
@@ -188,0 +188,0 @@ Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** suitable for log event processing |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15388