qdeslandes / yall Goto Github PK
View Code? Open in Web Editor NEWSubsystem based C logging library.
Home Page: https://naccyde.github.io/yall/
License: MIT License
Subsystem based C logging library.
Home Page: https://naccyde.github.io/yall/
License: MIT License
Remove file in create_subsystem()
, add a flag in struct yall_subsystem
to find out if the file should be deleted on create but do not use it now (subsystem creation will be to heavy will this flag).
This is not useful, as windows provides atomic CAS through standard variable and other atomic primitives, which is sufficient.
Function / class name sometimes show the return type of the class.
message.h
should be included inside yall.h
yall headers are not visible inside Visual Studio (because they are not part of the project inside CMake).
Need to convert char *
to std::string
The purpose is to have :
appTest ::: NOTICE :: TestClass::main :: 2017-01-26 17:45:47 : Starting application...
instead of :
appTest ::: NOTICE :: main :: 2017-01-26 17:45:47 : Starting application...
This mode should be enabled in run time.
Current license is GPLv2. The problem is that a closed sources project could not use the library, which is blocking. The currently most appropriate license is MIT.
A problem occurs if a client closes yall before the other client have finished :
A: yall_init();
B: yall_init();
B: yall_close();
A: YALL_ERR(); -> Library is closed !
Header format should be customizable to allow different configurations, in a printf
manner :
\s :: \d :: \f :
will generate <subsystem> :: <date> :: <function>
as header.
Currently, tests for generate_std_msg()
are disabled because of a failure on Windows, they need to be restored.
Possibility to load the subsystems configuration from a file
Conditions : Win32
Version : 1.1.0 Release
Currently, YALL_DEBUG() and such macros can be called even if the library is not initialized.
Create a function which output the subsystem tree :
main
|-> test
|-> subtest
|-> other
Ex: libyall.so.1.2
This function must map each error code (yall/errors.h
) to a string.
Create a lock free message queue which avoid locking the console or the file.
TODO :
appTest ::: NOTICE :: main :: 2017-01-26 17:45:47 : Starting application...
Set fixed name length for subsystem name ("appTest" here). The style of the generated output should be better.
Create an application which will read a log file and a configuration, and show the subsystems tree and each log message.
TODO :
This issue can leads to circling reference between two subsystems.
Through set(CMAKE_DEBUG_POSTFIX d)
This subsystem will be defined inside the library and will be used in case of error, if a requested subsystem is not found. It should log data from debug to emerg in a specific file.
SonarCloud found a bug.
The subsystems linked list is not the best way to manage the subsystems as it triggers cache misses when the library try to retrieve a subsystem. Using a plain array would be better, but we have to keep the subsystems hierarchy intact.
Issue #42 would work on the same parts of the code.
Implement callback function for each subsystem, on each log level.
This will allow to call a specific custom function on each subsystem log for each log level (to open a confirmation popup for example).
UPDATE : This a more an "Error management" feature, than a "Logging" feature. It is currently out of scope.
Clean README.md, set only useful informations and write library documentation inside the GitHub wiki.
Instead of :
appTest ::: EMERGENCY :: main :: 2017-01-27 15:41:51 : ApplicationManager failed to initialize
get :
appTest ::: EMERGENCY :: main:186 :: 2017-01-27 15:41:51 : ApplicationManager failed to initialize
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.