Compare commits
No commits in common. "master" and "1.0.1" have entirely different histories.
3 changed files with 5 additions and 6 deletions
|
@ -19,7 +19,7 @@ Console.customHeader(`xyz started at ${new Date()}`);
|
|||
This must be called this before anything is logged to the console!
|
||||
|
||||
## Cleaning up
|
||||
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.
|
||||
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.
|
||||
You can do this by calling `cleanup` in, for example, a **SIGINT** event handler:
|
||||
```ts
|
||||
process.on("SIGINT", signal => {
|
||||
|
|
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "hsconsole",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "hsconsole",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.0",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"dyetty": "^1.0.1"
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
{
|
||||
"name": "hsconsole",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.1",
|
||||
"description": "",
|
||||
"main": "./lib/index.js",
|
||||
"types": "./lib/index.d.ts",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"updateCheck": "check-outdated",
|
||||
"build": "tsc --build",
|
||||
|
|
Loading…
Reference in a new issue