-
-
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.
* Change console render libery * Updated prefixes * Fixed tests * Refactored default styles * Replace PrintResponse method * Changed error handler * Remove dead code * Fixed logger * Cleanup packages * Replaced logger * Added tests * Updated colours * Refactored logger styles * Fixed double empty lines * Fixed prefix in logs * Fixed lint issues * Fixed message box * Fixed tests * Added tests for print response * Added tests for box message printer * Fixed tests * Refactor tests * Added logger tests * Fixed printing width
- Loading branch information
Showing
60 changed files
with
1,594 additions
and
1,402 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 |
---|---|---|
|
@@ -6,3 +6,6 @@ dist/ | |
node_modules | ||
.uncors.yaml | ||
coverage.out | ||
.DS_Store | ||
uncors | ||
!uncors/ |
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
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,13 +1,14 @@ | ||
package contracts | ||
|
||
type Logger interface { | ||
Error(a ...any) | ||
Error(msg any, keyvals ...any) | ||
Errorf(template string, a ...any) | ||
Warning(a ...any) | ||
Warningf(template string, a ...any) | ||
Info(a ...any) | ||
Warn(msg any, keyvals ...any) | ||
Warnf(template string, a ...any) | ||
Info(msg any, keyvals ...any) | ||
Infof(template string, a ...any) | ||
Debug(a ...any) | ||
Debug(msg any, keyvals ...any) | ||
Debugf(template string, a ...any) | ||
PrintResponse(request *Request, code int) | ||
Print(msg any, keyvals ...any) | ||
Printf(format string, args ...any) | ||
} |
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
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
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
Oops, something went wrong.