Skip to content

Commit

Permalink
Add custom log example
Browse files Browse the repository at this point in the history
  • Loading branch information
raub committed Nov 4, 2024
1 parent fe1ce09 commit 367c1a6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions examples/custom.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
'use strict';

const { ensuredir, write } = require('addon-tools-raub');
const { setLogPath, causeSegfault } = require('..');

(async () => {
await ensuredir('c:/tmp');
await write('c:/tmp/segfault.txt', '');

setLogPath('c:/tmp/segfault.txt');
causeSegfault();
})();

0 comments on commit 367c1a6

Please sign in to comment.