-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from guiiai/fix/tty
fix: bug: support cloudflare worker #2
- Loading branch information
Showing
3 changed files
with
18 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Format, LogLevel, createLogg, setGlobalFormat, setGlobalLogLevel } from '../src' | ||
|
||
setGlobalLogLevel(LogLevel.Debug) | ||
setGlobalFormat(Format.Pretty) // Otherwise it will output JSON | ||
|
||
// Create a logger instance with a specific context | ||
const log = createLogg('http/request').useGlobalConfig() | ||
|
||
log | ||
.withField('url', 'https://github.com/guiiai/logg') | ||
.log('Welcome to our repository') |
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,7 +1,7 @@ | ||
{ | ||
"name": "@guiiai/logg", | ||
"type": "module", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"packageManager": "[email protected]", | ||
"description": "Yet another simple, nearly zero dependency, structural log compliance logger implementation.", | ||
"contributors": [ | ||
|
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