Skip to content
/ Logger Public

This is header only library that logs data into various file formats called Sinks. Currently supports JSON. Any type of Sinks (csv, txt, ...) can be defined inheriting from the class Sink (inc directory).

Notifications You must be signed in to change notification settings

arkag70/Logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is header only library that logs data into various file formats called Sinks. Currently supports JSON. Any type of Sinks (csv, txt, ...) can be defined inheriting from the class Sink (inc directory).

{
	"testLabel" :{
		"Timestamp" : "Sat Nov  5 16:03:00 2022",
		"Severity" : "FATAL",
		"file_name" : "/home/arkag70/arka/cpp_projects/Logger/src/main.cpp",
		"line number" : "7",
		"Thread ID" : "37824",
		"Message" : "Sum : 15"
	},
	"testLabel" :{
		"Timestamp" : "Sat Nov  5 16:03:00 2022",
		"Severity" : "FATAL",
		"file_name" : "/home/arkag70/arka/cpp_projects/Logger/src/main.cpp",
		"line number" : "10",
		"Thread ID" : "37824",
		"Message" : "Diff : 5"
	},
	"testLabel" :{
		"Timestamp" : "Sat Nov  5 16:03:00 2022",
		"Severity" : "FATAL",
		"file_name" : "/home/arkag70/arka/cpp_projects/Logger/src/main.cpp",
		"line number" : "13",
		"Thread ID" : "37824",
		"Message" : "Prod : 50"
	},
	"testLabel" :{
		"Timestamp" : "Sat Nov  5 16:03:00 2022",
		"Severity" : "FATAL",
		"file_name" : "/home/arkag70/arka/cpp_projects/Logger/src/main.cpp",
		"line number" : "31",
		"Thread ID" : "37824",
		"Message" : "Hello my name is Arka"
	},
	"testLabel" :{
		"Timestamp" : "Sat Nov  5 16:03:00 2022",
		"Severity" : "FATAL",
		"file_name" : "/home/arkag70/arka/cpp_projects/Logger/src/main.cpp",
		"line number" : "32",
		"Thread ID" : "37824",
		"Message" : "I am 26 years old"
	},
	"testLabel" :{
		"Timestamp" : "Sat Nov  5 16:03:00 2022",
		"Severity" : "FATAL",
		"file_name" : "/home/arkag70/arka/cpp_projects/Logger/src/main.cpp",
		"line number" : "33",
		"Thread ID" : "37824",
		"Message" : "I stay in Kolkata"
	},
	"testLabel" :{
		"Timestamp" : "Sat Nov  5 16:03:00 2022",
		"Severity" : "FATAL",
		"file_name" : "/home/arkag70/arka/cpp_projects/Logger/src/main.cpp",
		"line number" : "7",
		"Thread ID" : "22080",
		"Message" : "Sum : 35"
	},
	"testLabel" :{
		"Timestamp" : "Sat Nov  5 16:03:00 2022",
		"Severity" : "FATAL",
		"file_name" : "/home/arkag70/arka/cpp_projects/Logger/src/main.cpp",
		"line number" : "10",
		"Thread ID" : "22080",
		"Message" : "Diff : 5"
	},
	"testLabel" :{
		"Timestamp" : "Sat Nov  5 16:03:00 2022",
		"Severity" : "FATAL",
		"file_name" : "/home/arkag70/arka/cpp_projects/Logger/src/main.cpp",
		"line number" : "13",
		"Thread ID" : "22080",
		"Message" : "Prod : 300"
	}
}

About

This is header only library that logs data into various file formats called Sinks. Currently supports JSON. Any type of Sinks (csv, txt, ...) can be defined inheriting from the class Sink (inc directory).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published