-
Notifications
You must be signed in to change notification settings - Fork 3
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
Mehmet Sayin
authored and
Mehmet Sayin
committed
Apr 6, 2024
1 parent
dbfee51
commit 616d4fc
Showing
9 changed files
with
298 additions
and
32 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{"level":"error","message":"Invalid credentials"} | ||
{"level":"error","statusCode":400} | ||
{"level":"error","message":"User not found"} | ||
{"level":"error","statusCode":400} | ||
{"level":"error","message":"User not found"} | ||
{"level":"error","message":"User not found"} | ||
{"level":"error","message":"User not found"} | ||
{"level":"error","statusCode":400} | ||
{"level":"error","message":"Login attempt failed for username: fdsd"} |
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,9 @@ | ||
{"level":"error","message":"Invalid credentials"} | ||
{"level":"error","statusCode":400} | ||
{"level":"error","message":"User not found"} | ||
{"level":"error","statusCode":400} | ||
{"level":"error","message":"User not found"} | ||
{"level":"error","message":"User not found"} | ||
{"level":"error","message":"User not found"} | ||
{"level":"error","statusCode":400} | ||
{"level":"error","message":"Login attempt failed for username: fdsd"} |
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,10 @@ | ||
import winston from "winston"; | ||
|
||
export const logger = winston.createLogger({ | ||
level: 'info', | ||
format: winston.format.json(), | ||
transports: [ | ||
new winston.transports.File({ filename: 'error.log', level: 'error' }), | ||
new winston.transports.File({ filename: 'combined.log' }), | ||
], | ||
}); |
Oops, something went wrong.