This is an automated email from the ASF dual-hosted git repository.

liuhan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-go.git


The following commit(s) were added to refs/heads/main by this push:
     new 924fc32  refactor: replace interface{} with any for clarity and 
modernization (#239)
924fc32 is described below

commit 924fc3238ad2c920fd7186bb941ec1d5d5b41b43
Author: jiangmencity <[email protected]>
AuthorDate: Tue Feb 10 16:41:11 2026 +0900

    refactor: replace interface{} with any for clarity and modernization (#239)
---
 log/logger.go | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/log/logger.go b/log/logger.go
index 767b3b5..fdcfc3e 100644
--- a/log/logger.go
+++ b/log/logger.go
@@ -18,19 +18,19 @@
 package log
 
 type Logger interface {
-       WithField(key string, value interface{}) Logger
+       WithField(key string, value any) Logger
        // Info logs to the INFO log.
-       Info(args ...interface{})
+       Info(args ...any)
        // Infof logs to the INFO log.
-       Infof(format string, args ...interface{})
+       Infof(format string, args ...any)
        // Warn logs to the WARNING and INFO logs.
-       Warn(args ...interface{})
+       Warn(args ...any)
        // Warnf logs to the WARNING and INFO logs.
-       Warnf(format string, args ...interface{})
+       Warnf(format string, args ...any)
        // Error logs to the ERROR, WARNING, and INFO logs.
-       Error(args ...interface{})
+       Error(args ...any)
        // Errorf logs to the ERROR, WARNING, and INFO logs.
-       Errorf(format string, args ...interface{})
+       Errorf(format string, args ...any)
 }
 
 // SetLogger for connect the agent with program

Reply via email to