-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
597 additions
and
381 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.dnt-import-map.json | ||
coverage/ | ||
npm/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
logtape/README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"workspace": [ | ||
"./logtape", | ||
"./file" | ||
], | ||
"imports": { | ||
"@david/which-runtime": "jsr:@david/which-runtime@^0.2.1", | ||
"@deno/dnt": "jsr:@deno/dnt@^0.41.1", | ||
"@std/assert": "jsr:@std/assert@^0.222.1", | ||
"@std/async": "jsr:@std/async@^0.222.1", | ||
"@std/fs": "jsr:@std/fs@^0.223.0", | ||
"@std/path": "jsr:@std/path@^1.0.2", | ||
"@std/testing": "jsr:@std/testing@^0.222.1", | ||
"consolemock": "npm:consolemock@^1.1.0" | ||
}, | ||
"unstable": [ | ||
"fs" | ||
], | ||
"lock": false, | ||
"exclude": [ | ||
".github/", | ||
"docs/" | ||
], | ||
"tasks": { | ||
"check": { | ||
"command": "deno check **/*.ts && deno lint && deno fmt --check", | ||
"dependencies": [ | ||
"check:versions" | ||
] | ||
}, | ||
"check:versions": "deno run --allow-read scripts/check_versions.ts", | ||
"test": "deno test --allow-read --allow-write", | ||
"coverage": "rm -rf coverage && deno task test --coverage && deno coverage --html coverage", | ||
"dnt-all": "deno task --recursive dnt", | ||
"test-all:bun": "deno task --recursive test:bun", | ||
"test-all": { | ||
"dependencies": [ | ||
"test", | ||
"test-all:bun" | ||
] | ||
}, | ||
"publish": { | ||
"command": "deno publish", | ||
"dependencies": [ | ||
"check", | ||
"test" | ||
] | ||
}, | ||
"hooks:install": "deno run --allow-read=deno.json,.git/hooks/ --allow-write=.git/hooks/ jsr:@hongminhee/deno-task-hooks", | ||
"hooks:pre-commit": { | ||
"dependencies": [ | ||
"check" | ||
] | ||
}, | ||
"hooks:pre-push": { | ||
"dependencies": [ | ||
"check", | ||
"test" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"package":"@logtape/file","version":"0.9.0-dev.1","index":{"getFileSink()":{"kind":[{"char":"f","kind":"Function","title":"Function"}],"name":"getFileSink","file":".","doc":"Get a file sink.\n\nNote that this function is unavailable in the browser.\n","url":"https://jsr.io/@logtape/[email protected]/doc/~/getFileSink","deprecated":false,"label":"getFileSink()"},"getRotatingFileSink()":{"kind":[{"char":"f","kind":"Function","title":"Function"}],"name":"getRotatingFileSink","file":".","doc":"Get a rotating file sink.\n\nThis sink writes log records to a file, and rotates the file when it reaches\nthe `maxSize`. The rotated files are named with the original file name\nfollowed by a dot and a number, starting from 1. The number is incremented\nfor each rotation, and the maximum number of files to keep is `maxFiles`.\n\nNote that this function is unavailable in the browser.\n","url":"https://jsr.io/@logtape/[email protected]/doc/~/getRotatingFileSink","deprecated":false,"label":"getRotatingFileSink()"}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<!-- deno-fmt-ignore-file --> | ||
|
||
File sinks for LogTape | ||
====================== | ||
|
||
[![JSR][JSR badge]][JSR] | ||
[![npm][npm badge]][npm] | ||
|
||
This package provides file sinks for [LogTape]. You can use the file sinks to | ||
write log records to files. For details, read the docs: | ||
|
||
- [File sink] | ||
- [Rotating file sink] | ||
|
||
[JSR]: https://jsr.io/@logtape/file | ||
[JSR badge]: https://jsr.io/badges/@logtape/file | ||
[npm]: https://www.npmjs.com/package/@logtape/file | ||
[npm badge]: https://img.shields.io/npm/v/@logtape/file?logo=npm | ||
[LogTape]: https://logtape.org/ | ||
[File sink]: https://logtape.org/manual/sinks#file-sink | ||
[Rotating file sink]: https://logtape.org/manual/sinks#rotating-file-sink | ||
|
||
|
||
Installation | ||
------------ | ||
|
||
This package is available on [JSR] and [npm]. You can install it for various | ||
JavaScript runtimes and package managers: | ||
|
||
~~~~ sh | ||
deno add @logtape/file # for Deno | ||
npm add @logtape/file # for npm | ||
pnpm add @logtape/file # for pnpm | ||
yarn add @logtape/file # for Yarn | ||
bun add @logtape/file # for Bun | ||
~~~~ | ||
|
||
|
||
Docs | ||
---- | ||
|
||
The docs of LogTape is available at <https://logtape.org/manual/sinks>. | ||
For the API references, see <https://jsr.io/@logtape/file>. |
Oops, something went wrong.