Nojira is a software suite that allows remote logging.
It relies on .NET 4.6.1, and includes packages NancyFX, SQLite-net, Newtonsoft.Json and their respective dependences.
This is the process that will serve API request and web interface requests.
Log data are stored in a local SQLite database.
Configuration can be done by editing the config.json file.
{
"Title": "Nojira",
"Subtitle": "",
"BaseUri": "http://localhost",
"MaxConnections": 16,
"RequireAuth": true,
"EnableTraces": false,
"DatabasePath": "nojira.db",
"DatabasePrevPath": "nojira.prev.db"
}
Tables are automatically created if the database is empty. More info in Database.cs.
<BaseUri>/log/{machine}/{type}/{project}/{tag}/{message*}
The web interface is accessible at BaseUri
(by default: http://localhost/, a default user will automatically bre created).
The web interface offer the possibility to query logs based on specific conditions.
key=value0[,value1,...][;key=value0[,value1,...];...]
Here is an example :
project=nojira; tag=client,test; type=info,warning,error
This is the C# client that send the HTTP requests.
// Setup.
NojiraClient.Uri = "http://localhost:80";
NojiraClient.Project = "nojira";
// Logs.
NojiraClient.LogInfo("test", "test of an info message.");
NojiraClient.LogWarning("test", "test of an warning message.");
NojiraClient.LogError("test", "test of an error message.");
A simple test program that makes use of the Nojira.Client
to send request to the Nojira.Server
.