Skip to content

Commit 3280afd

Browse files
committed
update jsr doc Sync With readme
1 parent c35e1d4 commit 3280afd

File tree

2 files changed

+20
-10
lines changed

2 files changed

+20
-10
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,9 @@ interface fileLoggerOptions {
304304
interface LoggerInerface {
305305
constructor();
306306

307+
debug(...args: unknown[]): void;
307308
info(...args: unknown[]): void;
309+
log(...args: unknown[]): void;
308310
warn(...args: unknown[]): void;
309311
error(...args: unknown[]): void;
310312

mod.ts

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -282,22 +282,24 @@ More screenshots in the `screenshots` folder.
282282
283283
```ts
284284
interface fileLoggerOptions {
285-
rotate?: boolean; // cut by day
286-
maxBytes?: number, // the maximum size in bytes that the log file can grow to before rolling over to a new one
287-
maxBackupCount?: number // maxBackupCount must work with maxBytes
285+
rotate?: boolean; // cut by day
286+
maxBytes?: number; // the maximum size in bytes that the log file can grow to before rolling over to a new one
287+
maxBackupCount?: number; // maxBackupCount must work with maxBytes
288288
}
289289
290290
interface LoggerInerface {
291-
constructor()
291+
constructor();
292292
293-
info(...args: unknown[]): void
294-
warn(...args: unknown[]): void
295-
error(...args: unknown[]): void
293+
debug(...args: unknown[]): void;
294+
info(...args: unknown[]): void;
295+
log(...args: unknown[]): void;
296+
warn(...args: unknown[]): void;
297+
error(...args: unknown[]): void;
296298
297-
async initFileLogger(dir: string, options: fileLoggerOptions = {}): Promise<void>
299+
initFileLogger(dir: string, options: fileLoggerOptions = {}): Promise<void>;
298300
299-
disableConsole(): void
300-
enableConsole(): void
301+
disableConsole(): void;
302+
enableConsole(): void;
301303
302304
disableFile(): void;
303305
enableFile(): void;
@@ -307,6 +309,12 @@ interface LoggerInerface {
307309
}
308310
```
309311
312+
## Contributors
313+
314+
<a href="https://github.com/deno-library/logger/graphs/contributors">
315+
<img src="https://contrib.rocks/image?repo=deno-library/logger" />
316+
</a>
317+
Thanks for their contributions!
310318
* @module
311319
*/
312320

0 commit comments

Comments
 (0)