Skip to content

sharifiniax/logserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install the required dependencies and run:

 
cd logserver-master
go mod download
go run main.go

Usage

Sending Log Messages

To send log messages to the API, make a POST request to the /logs endpoint with the following JSON payload in port 8080:

{
  "level": "info",  
  "message": "This is an info log message",
  "tag": "myTag"
}

The level field specifies the log level, which can be one of the following values: DEBUG, INFO, WARNING, or ERROR. The message field contains the log message, and the optional tag field allows you to provide additional context or categorize the log entries.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages