feat: add zerolog logger

This commit is contained in:
2024-10-22 16:03:20 +05:30
parent b4eb561e1f
commit 23e1b99728
4 changed files with 39 additions and 4 deletions

View File

@ -6,6 +6,7 @@ package cmd
import (
"os"
"github.com/0xtux/trok/internal/config"
"github.com/spf13/cobra"
)
@ -15,6 +16,10 @@ var rootCmd = &cobra.Command{
Long: "Simple TCP tunnel in Go that exposes local ports to internet, bypassing NAT firewalls.",
}
func init() {
config.InitLogger()
}
func Execute() {
rootCmd.CompletionOptions.HiddenDefaultCmd = true
err := rootCmd.Execute()