cd logserver-master
go mod download
go run main.go
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.