Skip to content

Commit

Permalink
Spelling Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
iDigitalFlame committed Sep 13, 2022
1 parent 41e8c98 commit 118f80c
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# LogX - Simple Golang Logging Library

LogX is a easy to use logging library for usage in any Golang application.
LogX is an easy to use logging library for usage in any Golang application.

With LogX you can:

Expand Down
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.
//

// Package logx is a easy to use logging library for usage in any Golang application.
// Package logx is an easy to use logging library for usage in any Golang application.
//
// With LogX you can:
// - Log to Console!
Expand Down
8 changes: 4 additions & 4 deletions global.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@

package logx

// Global is the default Global loging instance. This can be used instead of passing
// Global is the default Global logging instance. This can be used instead of passing
// around a logging handle.
//
// All standard 'Log*' functions or functions with a nil struct will go to this
// loging instance.
// logging instance.
var Global = Console()

// LogInfo writes a informational message to the Global logger.
// LogInfo writes an informational message to the Global logger.
//
// The function arguments are similar to 'fmt.Sprintf' and 'fmt.Printf'. The
// first argument is a string that can contain formatting characters. The second
Expand All @@ -38,7 +38,7 @@ func LogInfo(m string, v ...interface{}) {
Global.Info(m, v)
}

// LogError writes a error message to the Global logger.
// LogError writes an error message to the Global logger.
//
// The function arguments are similar to 'fmt.Sprintf' and 'fmt.Printf'. The
// first argument is a string that can contain formatting characters. The second
Expand Down
18 changes: 9 additions & 9 deletions log.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ const (
//
// NOTE: 'Lmsgprefix' has no effect.
const (
Ldate uint8 = FlagDate
Ltime uint8 = FlagTime
Lmicroseconds uint8 = FlagMicroseconds
Llongfile uint8 = FlagFileLong
Lshortfile uint8 = FlagFileShort
LUTC uint8 = FlagTimeUTC
Ldate = FlagDate
Ltime = FlagTime
Lmicroseconds = FlagMicroseconds
Llongfile = FlagFileLong
Lshortfile = FlagFileShort
LUTC = FlagTimeUTC
Lmsgprefix uint8 = 0
LstdFlags uint8 = FlagStandard
LstdFlags = FlagStandard
)

// FatalExits is a boolean setting that determines if a call to Fatal or LogFatal
Expand Down Expand Up @@ -160,14 +160,14 @@ type Log interface {
// 'fmt.Println'. The only argument is a vardict of interfaces that
// can be used to output a string value.
Panicln(...interface{})
// Info writes a informational message to the logger.
// Info writes an informational message to the logger.
//
// The function arguments are similar to 'fmt.Sprintf' and 'fmt.Printf'. The
// first argument is a string that can contain formatting characters. The second
// argument is a vardict of interfaces that can be omitted or used in the supplied
// format string.
Info(string, ...interface{})
// Error writes a error message to the logger.
// Error writes an error message to the logger.
//
// The function arguments are similar to 'fmt.Sprintf' and 'fmt.Printf'. The
// first argument is a string that can contain formatting characters. The second
Expand Down
4 changes: 2 additions & 2 deletions multiple.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func (m Multi) Panicln(v ...interface{}) {
panic(fmt.Sprint(v...))
}

// Info writes a informational message to the logger.
// Info writes n informational message to the logger.
//
// The function arguments are similar to 'fmt.Sprintf' and 'fmt.Printf'. The
// first argument is a string that can contain formatting characters. The second
Expand All @@ -148,7 +148,7 @@ func (m Multi) Info(s string, v ...interface{}) {
}
}

// Error writes a error message to the logger.
// Error writes an error message to the logger.
//
// The function arguments are similar to 'fmt.Sprintf' and 'fmt.Printf'. The
// first argument is a string that can contain formatting characters. The second
Expand Down
6 changes: 3 additions & 3 deletions option.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

package logx

// Append is a loging setting that instructs the Log to override the default log
// Append is a logging setting that instructs the Log to override the default log
// file truncation behavior. When this is used in the options for creating a file
// backed log instance, the new logged data will be appended to any previous data
// that the file contains.
Expand All @@ -24,7 +24,7 @@ package logx
const Append = settingAppend(true)

// DefaultFlags is the default bitwise flag value that is used for new logging
// instances that are not given an flag options setting when created.
// instances that are not given a flag options setting when created.
//
// This flag number may be changed before running to affect creation of new
// logging instances.
Expand All @@ -47,7 +47,7 @@ type settingPrefix string
// Option is an interface that allows for passing a vardict of potential
// settings that can be used during creation of a logging instance.
//
// This interface type will only be fulfilled by interanal functions.
// This interface type will only be fulfilled by internal functions.
type Option interface {
setting() setting
}
Expand Down

0 comments on commit 118f80c

Please sign in to comment.