- Create cmd/logcorrelator/main.go as the application entry point - Loads configuration from YAML file - Initializes Unix socket sources, file/ClickHouse/stdout sinks - Sets up correlation service and orchestrator - Handles graceful shutdown on SIGINT/SIGTERM - Supports -version flag to print version - Add internal/adapters/outbound/stdout/sink.go - Implements CorrelatedLogSink interface for stdout output - Writes JSON lines to standard output - Fix .gitignore to use /logcorrelator instead of logcorrelator - Prevents cmd/logcorrelator directory from being ignored Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
33 lines
260 B
Plaintext
33 lines
260 B
Plaintext
# Build directory
|
|
/build/
|
|
/dist/
|
|
|
|
# Binaries
|
|
*.exe
|
|
*.exe~
|
|
*.dll
|
|
*.so
|
|
*.dylib
|
|
/logcorrelator
|
|
|
|
# Test binary
|
|
*.test
|
|
|
|
# Output of the go coverage tool
|
|
*.out
|
|
|
|
# Dependency directories
|
|
vendor/
|
|
|
|
# IDE
|
|
.idea/
|
|
.vscode/
|
|
*.swp
|
|
*.swo
|
|
*~
|
|
|
|
# OS
|
|
.DS_Store
|
|
Thumbs.db
|
|
.aider*
|