-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
29a25dc
commit 99984a2
Showing
2 changed files
with
17 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ For Deno usage refer to [deno-logger doc](https://deno.land/x/logger) | |
### console logger | ||
|
||
```js | ||
import Logger from "https://deno.land/x/[email protected].3/logger.ts"; | ||
import Logger from "https://deno.land/x/[email protected].5/logger.ts"; | ||
|
||
const logger = new Logger(); | ||
|
||
|
@@ -22,7 +22,7 @@ logger.error("i am from consoleLogger", new Error("test")); | |
### file and console logger | ||
|
||
```js | ||
import Logger from "https://deno.land/x/[email protected].3/logger.ts"; | ||
import Logger from "https://deno.land/x/[email protected].5/logger.ts"; | ||
|
||
const logger = new Logger(); | ||
|
||
|
@@ -42,7 +42,7 @@ logger.error("i am from fileLogger", new Error("test")); | |
### file logger only | ||
|
||
```js | ||
import Logger from "https://deno.land/x/[email protected].3/logger.ts"; | ||
import Logger from "https://deno.land/x/[email protected].5/logger.ts"; | ||
|
||
const logger = new Logger(); | ||
await logger.initFileLogger("../log"); | ||
|
@@ -68,7 +68,7 @@ interface fileLoggerOptions { | |
example | ||
|
||
```js | ||
import Logger from "https://deno.land/x/[email protected].3/logger.ts"; | ||
import Logger from "https://deno.land/x/[email protected].5/logger.ts"; | ||
const logger = new Logger(); | ||
|
||
// cut by day | ||
|
@@ -158,7 +158,7 @@ await logger.initFileLogger("../log", { | |
## disableConsole and enableConsole | ||
|
||
```js | ||
import Logger from "https://deno.land/x/[email protected].3/logger.ts"; | ||
import Logger from "https://deno.land/x/[email protected].5/logger.ts"; | ||
|
||
const logger = new Logger(); | ||
|
||
|
@@ -175,7 +175,7 @@ logger.info("console enabled, you can see me"); | |
## disableFile and enableFile | ||
|
||
```js | ||
import Logger from "https://deno.land/x/[email protected].3/logger.ts"; | ||
import Logger from "https://deno.land/x/[email protected].5/logger.ts"; | ||
|
||
const logger = new Logger(); | ||
await logger.initFileLogger("../log"); | ||
|
@@ -202,7 +202,7 @@ example: | |
3. fileLogger, consoleLogger => disable => enable => fileLogger, consoleLogger | ||
|
||
```js | ||
import Logger from "https://deno.land/x/[email protected].3/logger.ts"; | ||
import Logger from "https://deno.land/x/[email protected].5/logger.ts"; | ||
|
||
const logger = new Logger(); | ||
await logger.initFileLogger("../log"); | ||
|
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