1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-23 04:47:02 +00:00

logging: several improvements

Former-commit-id: 12538c74a1aa55314c35ac3cf2665646b704851d
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-04-28 01:58:56 +03:00
parent b02706f207
commit 27ca1c93f5
11 changed files with 125 additions and 56 deletions

View File

@@ -1,6 +1,7 @@
package context
import (
"io"
"os"
"path"
"path/filepath"
@@ -43,9 +44,9 @@ type RouteReadOnly interface {
// ResolvePath returns the formatted path's %v replaced with the args.
ResolvePath(args ...string) string
// Trace returns some debug infos as a string sentence.
// Trace should writes debug route info to the "w".
// Should be called after Build.
Trace() string
Trace(w io.Writer)
// Tmpl returns the path template,
// it contains the parsed template