LIBRARY TO SAVE LOGS IN GOLANG

Library to save logs in files and send them to Discord


This project is created in golang, and serves to save the logs in text files and also allows us to implement a discord webhook to send the logs to a specific channel and to have notifications.

Example:

 
package main
 
import (
	"github.com/ruxwez/ulogs/v1"
)
 
func main() {
	logs := ulogs.NewInstance(&ulogs.Config{
		Name:       "ULogs Name",
		FilePrefix: "ULogs",
		DiscordURL: "<DISCORD_WEBHOOK>",
	})
 
	logs.Send(ulogs.TYPE_INFO, "Esto es un log de prueba")
}