Code Monkey home page Code Monkey logo

Comments (8)

maxsupermanhd avatar maxsupermanhd commented on June 16, 2024

How about move all logging to P7 logging library, it will open a lot of new possibilities. As I've seen now there is just occasional std::cout and std::cerr piping but not much structure. What are you thinking about it?

from botcraft.

adepierre avatar adepierre commented on June 16, 2024

To be honest, I didn't have any time to think about that.

Right now I'm still refactoring all the AI/task system. There is also all the stuff with the Entities that I need to develop. And in addition there is an issue (#49 ) that needs to be fixed, and the location of the output you mentioned in another issue that I'd like to fix because I agree that's not ideal. This improvement is thus behind a lot of things in my todo list.

Besides that, the whole point of this library for me is doing things to learn. That's why I'm trying to keep the number of external dependencies as low as possible. So it's unlikely that I'll add one like P7 just for logging stuff, and rather develop something custom. Will it be as efficient and powerful as a specialised third party? No way. Will it be more interesting for me? Yes.

from botcraft.

maxsupermanhd avatar maxsupermanhd commented on June 16, 2024

Is it worth trying to implement in-house logging and go through every stdout/printf and collect it in central place? If so - should I make like "log level" thing aka info, warning, error, verbose?

from botcraft.

adepierre avatar adepierre commented on June 16, 2024

I'm not sure this is the right time to do this as things will be changed with the new behaviour system, I think it would be wiser to wait for that before trying this kind of things impacting many files.

from botcraft.

maxsupermanhd avatar maxsupermanhd commented on June 16, 2024

Ok, waiting for a bunch of new prints to logs to sort out. Longer logging is delayed - harder it is to rake.

from botcraft.

adepierre avatar adepierre commented on June 16, 2024

Well from my point of view it's not even in the scope of this library so it's not really an issue to delay that.

From what I've read from all the issues you've opened, I think you should consider creating your own fork of Botcraft and do whatever you want to with it without bothering with my slowness.

from botcraft.

maxsupermanhd avatar maxsupermanhd commented on June 16, 2024

No, if you want to call Botcraft a library it must have primitive capabilities of integration. Dropping random junk to stdout (sometimes even without \n on the end) is not acceptable.

from botcraft.

adepierre avatar adepierre commented on June 16, 2024

Ok so don't call it a library, fine. No problem.

I just code it for fun and because that interests me. I don't have the ambition to make it perfect or even usable for anyone other than me. I made the code open source because I thought it could interest other people and be useful for them.

Now if it's not for you, then just use another library that meets your criteria or build your own.

from botcraft.

Related Issues (20)

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.