165 lines
4.1 KiB
Markdown
165 lines
4.1 KiB
Markdown
<!-- Code generated by gomarkdoc. DO NOT EDIT -->
|
|
|
|
# logger
|
|
|
|
```go
|
|
import "katenary.io/internal/logger"
|
|
```
|
|
|
|
Package logger provides simple logging functions with icons and colors.
|
|
|
|
## func [Failure](<https://repo.katenary.io/Katenary/katenary/blob/feature/better-depends-on/internal/logger/logger.go#L75>)
|
|
|
|
```go
|
|
func Failure(msg ...any)
|
|
```
|
|
|
|
Failure prints a failure message.
|
|
|
|
<a name="Failuref"></a>
|
|
## func [Failuref](<https://repo.katenary.io/Katenary/katenary/blob/feature/better-depends-on/internal/logger/logger.go#L81>)
|
|
|
|
```go
|
|
func Failuref(format string, msg ...any)
|
|
```
|
|
|
|
Failuref prints a formatted failure message.
|
|
|
|
<a name="Fatal"></a>
|
|
## func [Fatal](<https://repo.katenary.io/Katenary/katenary/blob/feature/better-depends-on/internal/logger/logger.go#L108>)
|
|
|
|
```go
|
|
func Fatal(msg ...any)
|
|
```
|
|
|
|
Fatal prints a fatal error message and exits with code 1.
|
|
|
|
<a name="Fatalf"></a>
|
|
## func [Fatalf](<https://repo.katenary.io/Katenary/katenary/blob/feature/better-depends-on/internal/logger/logger.go#L114>)
|
|
|
|
```go
|
|
func Fatalf(format string, msg ...any)
|
|
```
|
|
|
|
Fatalf prints a fatal error message with formatting and exits with code 1.
|
|
|
|
<a name="Info"></a>
|
|
## func [Info](<https://repo.katenary.io/Katenary/katenary/blob/feature/better-depends-on/internal/logger/logger.go#L41>)
|
|
|
|
```go
|
|
func Info(msg ...any)
|
|
```
|
|
|
|
Info prints an informational message.
|
|
|
|
<a name="Infof"></a>
|
|
## func [Infof](<https://repo.katenary.io/Katenary/katenary/blob/feature/better-depends-on/internal/logger/logger.go#L46>)
|
|
|
|
```go
|
|
func Infof(format string, msg ...any)
|
|
```
|
|
|
|
Infof prints a formatted informational message.
|
|
|
|
<a name="Log"></a>
|
|
## func [Log](<https://repo.katenary.io/Katenary/katenary/blob/feature/better-depends-on/internal/logger/logger.go#L87>)
|
|
|
|
```go
|
|
func Log(icon Icon, msg ...any)
|
|
```
|
|
|
|
Log prints a message with a custom icon.
|
|
|
|
<a name="Logf"></a>
|
|
## func [Logf](<https://repo.katenary.io/Katenary/katenary/blob/feature/better-depends-on/internal/logger/logger.go#L92>)
|
|
|
|
```go
|
|
func Logf(icon Icon, format string, msg ...any)
|
|
```
|
|
|
|
Logf prints a formatted message with a custom icon.
|
|
|
|
<a name="Print"></a>
|
|
## func [Print](<https://repo.katenary.io/Katenary/katenary/blob/feature/better-depends-on/internal/logger/logger.go#L31>)
|
|
|
|
```go
|
|
func Print(msg ...any)
|
|
```
|
|
|
|
Print prints a message without icon.
|
|
|
|
<a name="Printf"></a>
|
|
## func [Printf](<https://repo.katenary.io/Katenary/katenary/blob/feature/better-depends-on/internal/logger/logger.go#L36>)
|
|
|
|
```go
|
|
func Printf(format string, msg ...any)
|
|
```
|
|
|
|
Printf prints a formatted message without icon.
|
|
|
|
<a name="Success"></a>
|
|
## func [Success](<https://repo.katenary.io/Katenary/katenary/blob/feature/better-depends-on/internal/logger/logger.go#L63>)
|
|
|
|
```go
|
|
func Success(msg ...any)
|
|
```
|
|
|
|
Success prints a success message.
|
|
|
|
<a name="Successf"></a>
|
|
## func [Successf](<https://repo.katenary.io/Katenary/katenary/blob/feature/better-depends-on/internal/logger/logger.go#L69>)
|
|
|
|
```go
|
|
func Successf(format string, msg ...any)
|
|
```
|
|
|
|
Successf prints a formatted success message.
|
|
|
|
<a name="Warn"></a>
|
|
## func [Warn](<https://repo.katenary.io/Katenary/katenary/blob/feature/better-depends-on/internal/logger/logger.go#L51>)
|
|
|
|
```go
|
|
func Warn(msg ...any)
|
|
```
|
|
|
|
Warn prints a warning message.
|
|
|
|
<a name="Warnf"></a>
|
|
## func [Warnf](<https://repo.katenary.io/Katenary/katenary/blob/feature/better-depends-on/internal/logger/logger.go#L57>)
|
|
|
|
```go
|
|
func Warnf(format string, msg ...any)
|
|
```
|
|
|
|
Warnf prints a formatted warning message.
|
|
|
|
<a name="Icon"></a>
|
|
## type [Icon](<https://repo.katenary.io/Katenary/katenary/blob/feature/better-depends-on/internal/logger/logger.go#L10>)
|
|
|
|
Icon is a unicode icon
|
|
|
|
```go
|
|
type Icon string
|
|
```
|
|
|
|
<a name="IconSuccess"></a>Icons used in katenary.
|
|
|
|
```go
|
|
const (
|
|
IconSuccess Icon = "✅"
|
|
IconFailure Icon = "❌"
|
|
IconWarning Icon = "❕"
|
|
IconNote Icon = "📝"
|
|
IconWorld Icon = "🌐"
|
|
IconPlug Icon = "🔌"
|
|
IconPackage Icon = "📦"
|
|
IconCabinet Icon = "🗄️"
|
|
IconInfo Icon = "🔵"
|
|
IconSecret Icon = "🔒"
|
|
IconConfig Icon = "🔧"
|
|
IconDependency Icon = "🔗"
|
|
)
|
|
```
|
|
|
|
Generated by [gomarkdoc](<https://github.com/princjef/gomarkdoc>)
|