mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
helpers: Add a Debug method to DistinctLogger
This commit is contained in:
@@ -213,6 +213,13 @@ type DistinctLogger struct {
|
|||||||
m map[string]bool
|
m map[string]bool
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Debug prints all the log entries to standard output.
|
||||||
|
func (l *DistinctLogger) Debug() {
|
||||||
|
for k, _ := range l.m {
|
||||||
|
fmt.Println(k)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Println will log the string returned from fmt.Sprintln given the arguments,
|
// Println will log the string returned from fmt.Sprintln given the arguments,
|
||||||
// but not if it has been logged before.
|
// but not if it has been logged before.
|
||||||
func (l *DistinctLogger) Println(v ...interface{}) {
|
func (l *DistinctLogger) Println(v ...interface{}) {
|
||||||
|
Reference in New Issue
Block a user