Coder Social home page Coder Social logo

rsm's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

therocode

rsm's Issues

Command line argument parser

The goal is to have a class that you can pass the argc and argv to be parsed, and you can query if certain arguments are present.

You can also specify the scheme you want and that if an argument is supposed to have a parameter and it's missing, the parsing will fail.

e.g. -myArgument . If is missing, the parsing returns false and you can show an error to the end user.

Add time to logging

It could be interesting to add the time to the logging for better tracking.

Change typedef to using

Replace where possible all typedef to using. Thus code like
typedef std::string Key;
will become
using Key = std::string;

This is the proper usage in C++11 and it doesn't change the way to use those types.

Modify logger to offer a stream

Currently, the code require to pass something to the logging function:
rsm::Logger::debug("ToLog")

This prevent chaining easily. It could be interesting to offer a stream somehow so this could be done:
rsm::Logger::debug() << "ToLog" << "Other Data"

Add logging level filtering

Have the logger allow for a maximum level to be shown. (e.g. Debug for debug builds, but Warning for Release builds).

The lowest the level set, the more it shows:

Debug -> everything (Debug, Info, Warning, Critical, Error)
Info -> Info, Warning, Critical, Error
Warning -> Warning, Critical, Error
Critical -> Critical, Error
Error -> Error

Add time to logging

Currently, the logging just output, but there is no time information.

It would be nice to have this information, something like this:

[7h54m12s][Debug]: This is a debug line

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.