mirror of
https://github.com/lukaszraczylo/traefik-llmgateway.git
synced 2026-10-18 05:47:38 +00:00
feat: scaffold traefik-llmgateway plugin skeleton with manifest
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package traefikllmgateway
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
)
|
||||
|
||||
// logf writes an info-level log line to stderr. No timestamps — Traefik
|
||||
// adds its own. Never log key material.
|
||||
func (g *Gateway) logf(format string, args ...any) {
|
||||
fmt.Fprintf(os.Stderr, "llmgw[%s] INFO "+format+"\n", append([]any{g.name}, args...)...)
|
||||
}
|
||||
|
||||
// errorf writes an error-level log line to stderr. No timestamps — Traefik
|
||||
// adds its own. Never log key material.
|
||||
func (g *Gateway) errorf(format string, args ...any) {
|
||||
fmt.Fprintf(os.Stderr, "llmgw[%s] ERROR "+format+"\n", append([]any{g.name}, args...)...)
|
||||
}
|
||||
Reference in New Issue
Block a user