-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates #3. Squashed commit of the following: commit d7f07af Author: Eugene Burkov <[email protected]> Date: Thu Jul 18 14:48:34 2024 +0300 agdcslog: imp code commit 4c4abd7 Author: Eugene Burkov <[email protected]> Date: Wed Jul 17 19:45:27 2024 +0300 agdcslog: fix panic commit 3b2c62a Author: Eugene Burkov <[email protected]> Date: Wed Jul 17 19:34:37 2024 +0300 agdcslog: imp code, docs commit 39a9e61 Author: Eugene Burkov <[email protected]> Date: Wed Jul 17 17:48:34 2024 +0300 all: implement piped logger on darwin
- Loading branch information
1 parent
f259bcd
commit a51b997
Showing
8 changed files
with
348 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package agdcslog | ||
|
||
import "io" | ||
|
||
// SystemLogger is a platform-specific system logger. | ||
// | ||
// TODO(e.burkov): Consider moving to golibs. | ||
type SystemLogger interface { | ||
// Debug logs a message at debug level. | ||
Debug(msg string) (err error) | ||
|
||
// Info logs a message at info level. | ||
Info(msg string) (err error) | ||
|
||
// Warning logs a message at warning level. | ||
Warning(msg string) (err error) | ||
|
||
// Error logs a message at error level. | ||
Error(msg string) (err error) | ||
|
||
// Close detaches from the system logger. | ||
io.Closer | ||
} | ||
|
||
// NewSystemLogger returns a platform-specific system logger. name is the | ||
// name of service. | ||
func NewSystemLogger(name string) (l SystemLogger, err error) { | ||
return newSystemLogger(name) | ||
} |
Oops, something went wrong.