Giter VIP home page Giter VIP logo

Comments (8)

jrhemstad avatar jrhemstad commented on May 18, 2024 1

@jrhemstad I didn't notice anywhere it being mentioned that we can mix logger objects from different logging libraries itself? Maybe I'm misreading its docs?

You can mix logger objects because the libraries are totally independent. The spdlog that is in librmm.so is totally independent of libcuml.so.

Furthermore, the logger object I'm using in RMM isn't registered with spdlog's global registry of loggers because I don't want it to be visible or used externally. So there is no way you can possibly interact or conflict with the logger used in RMM short of totally rewriting the code.

from cuml.

burlachenkok avatar burlachenkok commented on May 18, 2024

Sometime ago I worked in things relative to append logging infrastructure to RAPIDS:

Repository:
https://github.com/burlachenkok/cuml/commits/Work_on_RAPML_29

Change:
burlachenkok@5dc14b9

from cuml.

teju85 avatar teju85 commented on May 18, 2024

Marking this as a Tech Debt item so as to help as plan for future clean-up releases.

from cuml.

teju85 avatar teju85 commented on May 18, 2024

@jrhemstad has recently filed a PR under RMM proposing to use spdlog as the underlying logging library.

Since we depend on RMM, we should do either one of the following:

  1. check if we can safely mix loggers, in case we want to go ahead with glog
  2. use spdlog instead of glog

Personal opinion: I'd favor spdlog.

from cuml.

jrhemstad avatar jrhemstad commented on May 18, 2024

I looked at glog and didn't like it because it wasn't header only. That's less of a big deal for a compiled library like cuML. This was more important for RMM since we're planning to make it header only.

See https://github.com/gabime/spdlog/wiki/How-to-use-spdlog-in-DLLs about mixing loggers in different libraries. They shouldn't collide at all.

from cuml.

teju85 avatar teju85 commented on May 18, 2024

@jrhemstad I didn't notice anywhere it being mentioned that we can mix logger objects from different logging libraries itself? Maybe I'm misreading its docs?

from cuml.

teju85 avatar teju85 commented on May 18, 2024

Great. Thanks for the confirmation @jrhemstad

from cuml.

teju85 avatar teju85 commented on May 18, 2024

Closing this one as PR #1867 has now been merged.

from cuml.

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.