mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-17 15:36:48 +00:00
19 lines
486 B
Go
19 lines
486 B
Go
|
|
package main
|
||
|
|
|
||
|
|
import (
|
||
|
|
"log/slog"
|
||
|
|
|
||
|
|
"github.com/SigNoz/signoz/cmd"
|
||
|
|
"github.com/SigNoz/signoz/pkg/instrumentation"
|
||
|
|
)
|
||
|
|
|
||
|
|
func main() {
|
||
|
|
// initialize logger for logging in the cmd/ package. This logger is different from the logger used in the application.
|
||
|
|
logger := instrumentation.NewLogger(instrumentation.Config{Logs: instrumentation.LogsConfig{Level: slog.LevelInfo}})
|
||
|
|
|
||
|
|
// register a list of commands to the root command
|
||
|
|
registerServer(cmd.RootCmd, logger)
|
||
|
|
|
||
|
|
cmd.Execute(logger)
|
||
|
|
}
|