1.0.2
This commit is contained in:
parent
a9cfbfa8ae
commit
b9df7eec73
3 changed files with 6 additions and 5 deletions
|
@ -19,7 +19,7 @@ Console.customHeader(`xyz started at ${new Date()}`);
|
||||||
This must be called this before anything is logged to the console!
|
This must be called this before anything is logged to the console!
|
||||||
|
|
||||||
## Cleaning up
|
## Cleaning up
|
||||||
It is **important** that you tell hsconsole to clean up before your application closes (i.e in the event on a CTRL+C) so it can be ensured that all log text is flushed to disk and to allow hsconsole to rename the latest log to the date your application was started.
|
It is **important** that you tell hsconsole to clean up before your application closes (i.e in the event of a CTRL+C) so it can be ensured that all log text is flushed to disk and to allow hsconsole to rename the latest log to the date your application was started.
|
||||||
You can do this by calling `cleanup` in, for example, a **SIGINT** event handler:
|
You can do this by calling `cleanup` in, for example, a **SIGINT** event handler:
|
||||||
```ts
|
```ts
|
||||||
process.on("SIGINT", signal => {
|
process.on("SIGINT", signal => {
|
||||||
|
|
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "hsconsole",
|
"name": "hsconsole",
|
||||||
"version": "1.0.0",
|
"version": "1.0.2",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "hsconsole",
|
"name": "hsconsole",
|
||||||
"version": "1.0.0",
|
"version": "1.0.2",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"dyetty": "^1.0.1"
|
"dyetty": "^1.0.1"
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
{
|
{
|
||||||
"name": "hsconsole",
|
"name": "hsconsole",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "./lib/index.js",
|
||||||
|
"types": "./lib/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"updateCheck": "check-outdated",
|
"updateCheck": "check-outdated",
|
||||||
"build": "tsc --build",
|
"build": "tsc --build",
|
||||||
|
|
Loading…
Reference in a new issue