@hapi/good-console
Advanced tools
Comparing version 8.1.2 to 9.0.0
@@ -1,2 +0,2 @@ | ||
Copyright (c) 2012-2019, Sideway Inc, and project contributors | ||
Copyright (c) 2012-2020, Sideway Inc, and project contributors | ||
Copyright (c) 2012-2014, Walmart. | ||
@@ -3,0 +3,0 @@ All rights reserved. |
{ | ||
"name": "@hapi/good-console", | ||
"version": "8.1.2", | ||
"version": "9.0.0", | ||
"repository": "git://github.com/hapijs/good-console", | ||
"description": "Console broadcasting for Good process monitor", | ||
"main": "lib/index.js", | ||
"files": [ | ||
"lib" | ||
], | ||
"dependencies": { | ||
"@hapi/hoek": "8.x.x", | ||
"@hapi/joi": "16.x.x", | ||
"@hapi/hoek": "9.x.x", | ||
"@hapi/joi": "17.x.x", | ||
"json-stringify-safe": "5.x.x", | ||
@@ -14,5 +17,5 @@ "moment": "2.x.x" | ||
"devDependencies": { | ||
"@hapi/code": "6.x.x", | ||
"@hapi/lab": "20.x.x", | ||
"@hapi/teamwork": "3.x.x" | ||
"@hapi/code": "8.x.x", | ||
"@hapi/lab": "22.x.x", | ||
"@hapi/teamwork": "4.x.x" | ||
}, | ||
@@ -19,0 +22,0 @@ "scripts": { |
@@ -1,27 +0,19 @@ | ||
<a href="http://hapijs.com"><img src="https://raw.githubusercontent.com/hapijs/assets/master/images/family.png" width="180px" align="right" /></a> | ||
<a href="https://hapi.dev"><img src="https://raw.githubusercontent.com/hapijs/assets/master/images/family.png" width="180px" align="right" /></a> | ||
# good-console | ||
# @hapi/good-console | ||
`good-console` is a transform stream useful for turning [good](https://github.com/hapijs/good) server events into formatted strings. | ||
#### Console reporting for good console monitor. | ||
[![Build Status](https://travis-ci.org/hapijs/good-console.svg?branch=master)](http://travis-ci.org/hapijs/good-console) | ||
**good-console** is part of the **hapi** ecosystem and was designed to work seamlessly with the [hapi web framework](https://hapi.dev) and its other components (but works great on its own or with other frameworks). If you are using a different web framework and find this module useful, check out [hapi](https://hapi.dev) – they work even better together. | ||
## Usage | ||
### Visit the [hapi.dev](https://hapi.dev) Developer Portal for tutorials, documentation, and support | ||
## `new GoodConsole([config])` | ||
Creates a new GoodConsole object with the following arguments: | ||
## Useful resources | ||
- `[config]` - optional configuration object with the following keys | ||
- `format` - [MomentJS](http://momentjs.com/docs/#/displaying/format/) format string. Defaults to 'YYMMDD/HHmmss.SSS'. | ||
- `utc` - boolean controlling Moment using [utc mode](http://momentjs.com/docs/#/parsing/utc/) or not. Defaults to `true`. | ||
- `color` - a boolean specifying whether to output in color. Defaults to `true`. | ||
- [Documentation and API](https://hapi.dev/family/good-console/) | ||
- [Version status](https://hapi.dev/resources/status/#good-console) (builds, dependencies, node versions, licenses, eol) | ||
- [Changelog](https://hapi.dev/family/good-console/changelog/) | ||
- [Project policies](https://hapi.dev/policies/) | ||
- [Free and commercial support options](https://hapi.dev/support/) | ||
## Output Formats | ||
Below are example outputs for the designated event type: | ||
- "ops" - 160318/013330.957, [ops] memory: 29Mb, uptime (seconds): 6, load: [1.650390625,1.6162109375,1.65234375] | ||
- "error" - 160318/013330.957, [error,`event.tags`] message: Just a simple error, stack: `event.error.stack` | ||
- "request" - 160318/013330.957, [request,`event.tags`] data: you made a request | ||
- "log" - 160318/013330.957, [log,`event.tags`] data: you made a default | ||
- "response" - 160318/013330.957, [response, `event.tags`] http://localhost:61253: post /data {"name":"adam"} 200 (150ms) | ||
## Note: this module is being deprecated on December 31st, 2020 due to lack to available support resources. Please consider using [another logging plugin](https://hapi.dev/plugins/#logging). |
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
7973
4
20
+ Added@hapi/address@4.1.0(transitive)
+ Added@hapi/formula@2.0.0(transitive)
+ Added@hapi/hoek@9.3.0(transitive)
+ Added@hapi/joi@17.1.1(transitive)
+ Added@hapi/pinpoint@2.0.1(transitive)
+ Added@hapi/topo@5.1.0(transitive)
- Removed@hapi/address@2.1.4(transitive)
- Removed@hapi/formula@1.2.0(transitive)
- Removed@hapi/hoek@8.5.1(transitive)
- Removed@hapi/joi@16.1.8(transitive)
- Removed@hapi/pinpoint@1.0.2(transitive)
- Removed@hapi/topo@3.1.6(transitive)
Updated@hapi/hoek@9.x.x
Updated@hapi/joi@17.x.x