Giter Club home page Giter Club logo

Comments (3)

Rickedb avatar Rickedb commented on July 23, 2024

Hi @melvyniandrag, you mean printing MID data such as a json output or something like mentioned in #1?

from serilog.formatting.openprotocolinterpreter.

melvyniandrag avatar melvyniandrag commented on July 23, 2024

Hi @Rickedb yes exactly that. Any format really, json, csv, anything.

For now I've got stuff like this:

           String ret = "";
            ret += "MID0001 - Start Communication" + "\n";
            ret += "Length: " + mid.Header.Length + "\n";
            ret += "Mid: " + mid.Header.Mid +"\n";
            ret += "Revision: " + mid.Header.Revision +"\n";
            ret += "No Ack Flag: " + mid.Header.NoAckFlag +"\n";
            ret += "StationID: " + mid.Header.StationId +"\n";
            ret += "SpindleID: " + mid.Header.SpindleId + "\n";
            ret += "Spare: " + "Not implemented in library" + "\n";
            return ret;

Which is time consuming to write because I'm handling many MIDs.

I imagine the library has a clean way to loop over the values and stick them in a nice, readable format.

I only looked briefly, but I think there is a List in the classes that could be looped over to create a json, csv or whatever. Seems like it would be easy to implement this in one small function.

from serilog.formatting.openprotocolinterpreter.

Rickedb avatar Rickedb commented on July 23, 2024

I understand that logging is extremely necessary when dealing with OpenProtocol.
Although it's not the main purpose of the library, I still want to develop some easy way to print/log OP data to help out.

These months (or this year completely) are being a little tough to me due to many side projects, which is making me a little bit away of OpenProtocolInterpreter project. But I promise this and other features will come as soon as possible.

from serilog.formatting.openprotocolinterpreter.

Related Issues (2)

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.