-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor logging and update dependencies for TLS Checker
- Replaced standard log package with charmbracelet/log for improved logging capabilities across the application. - Added new logger initialization in cmd/logger.go to standardize logging format and options. - Updated go.mod and go.sum to include new dependencies for logging and other indirect dependencies. - Enhanced error handling in auto.go and server.go to utilize the new logger for consistent logging output. This commit improves the logging mechanism in the TLS Checker application, providing better error reporting and information logging, while also updating dependencies for enhanced functionality.
- Loading branch information
Showing
5 changed files
with
79 additions
and
27 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,17 @@ | ||
package cmd | ||
|
||
import ( | ||
"os" | ||
|
||
"github.com/charmbracelet/log" | ||
) | ||
|
||
var logger *log.Logger | ||
|
||
func init() { | ||
logger = log.NewWithOptions(os.Stderr, log.Options{ | ||
ReportCaller: false, | ||
Level: log.InfoLevel, | ||
CallerFormatter: log.LongCallerFormatter, | ||
}) | ||
} |
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