Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

Commit

Permalink
Merge pull request #78 from iamando/develop
Browse files Browse the repository at this point in the history
feature: use camel case for utils
  • Loading branch information
ando authored May 10, 2023
2 parents e0e4790 + 0ca6859 commit 59e4609
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
func (logger *Logger) Log(level LogLevel, message string) {
if logger.level >= level {
timestamp := time.Now().Format(TimestampFormat)
levelString := LevelToString(level, string(logger.mode))
levelString := levelToString(level, string(logger.mode))

logMessage := fmt.Sprintf("[%s] [%s] %s\n", timestamp, levelString, message)

Expand Down
2 changes: 1 addition & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package welog

import "github.com/fatih/color"

func LevelToString(level LogLevel, mode string) string {
func levelToString(level LogLevel, mode string) string {
switch level {
case Error:
if mode == string(Basic) {
Expand Down

0 comments on commit 59e4609

Please sign in to comment.