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 #59 from iamando/develop
Browse files Browse the repository at this point in the history
feature: update colorful constant and text
  • Loading branch information
andostronaut committed May 1, 2023
2 parents 61652ce + f9de086 commit 26740e9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
![Go version](https://img.shields.io/github/go-mod/go-version/iamando/welog)
[![GoDoc](https://godoc.org/github.com/iamando/welog?status.svg)](https://godoc.org/github.com/iamando/welog)

A simple and colourful logger module for golang with timestamp support.
A simple and colorful logger module for golang with timestamp support.

## Install

Expand All @@ -24,8 +24,8 @@ import (


func ExampleUsage() {
// create a new logger with info level with basic mode or use `welog.Colourful` to use colourful mode
logger := welog.GenerateLogger(Info, welog.Basic) // welog.Colourful
// create a new logger with info level with basic mode or use `welog.Colorful` to use colorful mode
logger := welog.GenerateLogger(Info, welog.Basic) // welog.Colorful

// log some messages
logger.Error("An error occurred")
Expand Down
4 changes: 2 additions & 2 deletions constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const (
)

const (
Basic LogMode = "basic"
Colourful LogMode = "colorful"
Basic LogMode = "basic"
Colorful LogMode = "colorful"
)

const TimestampFormat string = "2006-01-02 15:04:05"
2 changes: 1 addition & 1 deletion docs/_config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
theme: jekyll-theme-cayman
title: welog
description: a simple and colourful logger module for golang with timestamp support.
description: a simple and colorful logger module for golang with timestamp support.
4 changes: 2 additions & 2 deletions welog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ func TestBasicMode(t *testing.T) {
}
}

func TestColourfulMode(t *testing.T) {
func TestColorfulMode(t *testing.T) {
var buf bytes.Buffer

logger := GenerateLogger(Info, Colourful)
logger := GenerateLogger(Info, Colorful)

logger.SetOutput(&buf)

Expand Down

0 comments on commit 26740e9

Please sign in to comment.