GithubHelp home page GithubHelp logo

Comments (5)

morrieinmaas avatar morrieinmaas commented on August 16, 2024

Hey, yeah we should remove this print statement I think. Generally right now all logs to console out. If we want to log to a file instead we have to set that up. If we want to do that we need to agree on whether we want everything to be logged into a single file or whether we possibly want different files/logs for different things. Any thoughts on that?

We also need to decide whether we want to go with the default log level WARNING or whether we want to change that to eg INFO.

We should also consider setting a switch for DEBUG mode so if the the controller is used in DEBUG mode DEBUG things will be logged.

from aries-cloudcontroller-python.

morrieinmaas avatar morrieinmaas commented on August 16, 2024

Also I did introduce testing that certain events get logged in the unit tests that got merged in. So like I said, I think we need to agree on how we want to log to file for instance and what that file is called, log level etc...

from aries-cloudcontroller-python.

morrieinmaas avatar morrieinmaas commented on August 16, 2024

I reckon the logging is ok now. I also changed the logger name space to be generic (name) so it gets picked up properly. If I'm not mistaken the way logging should be approached with the controller is:

  • When using the controller in a bigger context like in a jupyter notebook the messages get picked up via the logger in jupyter. Since that default log level is warning I htink and we have quite a few info level logging events only warning or higher will be spat out by jupyter. This can be managed by setting the logger in the notebook
    import logging
    logging.basicConfig(level=logging.INFO)
    or passing that as startup param to jupyter. One can see jupyter logs by right-clicking in the notebook and selecting Show Log Console.
  • generally the logs go to stderror.
  • It's also possible to specify a file to log to. I reckon the application using the AAC will set/specify that?! We coud also implement such thing in the controller itself...

from aries-cloudcontroller-python.

wip-abramson avatar wip-abramson commented on August 16, 2024

Cool, yep its an application thing. We just should know how to handle it and ideally document it somewhere.

We will definitely want to enable it for the simplified API work.

from aries-cloudcontroller-python.

TimoGlastra avatar TimoGlastra commented on August 16, 2024

As this library only passes through data I don't think this is applicable anymore, please reopen if that's not the case

from aries-cloudcontroller-python.

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.