Compare commits
1 commit
Author | SHA1 | Date | |
---|---|---|---|
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!
|
||||
|
||||
## 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:
|
||||
```ts
|
||||
process.on("SIGINT", signal => {
|
||||
|
|
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "hsconsole",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.2",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "hsconsole",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.2",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"dyetty": "^1.0.1"
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
{
|
||||
"name": "hsconsole",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"main": "./lib/index.js",
|
||||
"types": "./lib/index.d.ts",
|
||||
"scripts": {
|
||||
"updateCheck": "check-outdated",
|
||||
"build": "tsc --build",
|
||||
|
|
Loading…
Reference in a new issue