Categorygithub.com/jonh-dev/go-logger
module
0.0.0-20240106071918-32ecc05d85ca
Repository: https://github.com/jonh-dev/go-logger.git
Documentation: pkg.go.dev

# 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

# Packages

No description provided by the author
No description provided by the author