fsegaud / nojira

Nojira is a software suite that allows remote logging through a REST API and a web interface.

Home Page:https://fsegaud.github.io/nojira/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nojira (ノジラ)

Code Analysis Build Release

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.

Nojira.Server

This is the process that will serve API request and web interface requests.

Log data are stored in a local SQLite database.

Configuration

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"
}

Database

Tables are automatically created if the database is empty. More info in Database.cs.

API

<BaseUri>/log/{machine}/{type}/{project}/{tag}/{message*}

Web interface

The web interface is accessible at BaseUri (by default: http://localhost/, a default user will automatically bre created).

web interface screenshot web interface screenshot

Query

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

Nojira.Client

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.");

Nojira.Test

A simple test program that makes use of the Nojira.Client to send request to the Nojira.Server.

About

Nojira is a software suite that allows remote logging through a REST API and a web interface.

https://fsegaud.github.io/nojira/

License:MIT License


Languages

Language:C# 100.0%