Skip to content

Commit 8a88fc0

Browse files
authored
Update README.md
1 parent fedde1f commit 8a88fc0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ the node-windows Event Logging.
353353
# Event Logging
354354

355355
New as of `v0.1.0` is a _non-C++_ based event logging utility. This utility can write to the event log,
356-
making your logs visible from the Event Viewer.
356+
making your logs visible from the Event Viewer. It uses [eventcreate](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/eventcreate) under the hood.
357357

358358
To create a logger:
359359

@@ -383,8 +383,10 @@ arguments, including a _code_ and _callback_. By default, the event code is `100
383383
To provide a custom event code with a log message and write that message to the console, the following code could
384384
be used:
385385

386+
> **Notice:** It appears [eventcreate](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/eventcreate) only supports custom ID's <1000.
387+
386388
```js
387-
log.info('Something different happened!', 1002, function(){
389+
log.info('Something different happened!', 700, function(){
388390
console.log('Something different happened!');
389391
});
390392
```

0 commit comments

Comments
 (0)