go-logger

module
v0.0.0-...-32ecc05 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2024 License: MIT

README

Go-Logger

A logging library for Go applications.

TechnologiesRunningAuthor

Technologies

The following tools were used in building the project:

  • Go
  • IDE Visual Studio Code

Running

1. First, you need to install Go on your system. You can do this by following the instructions at the following link: https://golang.org/dl/

2. Choose an IDE of your choice, in this case we will use Visual Studio Code. To download it follow the link: https://code.visualstudio.com/download

3. Open your terminal and use go get to download and install the go-logger library. Replace github.com/jonh-dev/go-logger/logger with the path to your go-logger library:

$ go get github.com/jonh-dev/go-logger

4. Now you can import the go-logger library into your Go project. Here's an example of how you can do this:

import (
    "github.com/jonh-dev/go-logger/logger"
)

5. Now you can use the go-loggerlibrary in your code. Here’s an example of how you can do this:

func main() {
    log := logger.NewLogger()

    log.Info("This is an info message")
    log.Success("This is a success message")
    log.Warning("This is a warning message")
    log.Error("This is an error message")
    log.Panic("This is a panic message")
    log.Fatal("This is a fatal message")
}

6. Finally, run the project using the command go run main.go to run the application.

Author

avatar

Made by Jonh Dev 🙏

LinkedIn Badge

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL