Comments (5)
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.
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.
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 selectingShow 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.
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.
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)
- Wrong validation checks for TAAAcceptance model HOT 1
- Possible wrong validation in V10CredentialExchange HOT 4
- Possible wrong return type CredentialDefinitionGetResult HOT 1
- Validaiton Error for V10CredentialExchangeListResult HOT 1
- V20CredFilterIndy possibly wrong HOT 2
- Wrong validation for V20CredExRecord HOT 1
- Wrong validation fro V20CredExRecordListResult HOT 1
- Record ID not provided error for send_proposal method HOT 2
- Uplink warnings for decorator for Python version >= 3.8 HOT 3
- Codacy conflict for uplink controller HOT 5
- Validation error in type IndyProofReqAttrSpecNonRevoked (via IndyProofReqAttrSpec via IndyProofRequest)
- Boolean query parameters should be transformed
- Throw errors when the response throws and error HOT 2
- Roles in credential exchange HOT 2
- Validator for IndyRequestedCredsRequestedPred
- didexchange implicit invitation using public did does not have auto-accept even though supported in ACA-Py
- if body is optional, initialize it without parameters HOT 1
- Any Docs for How to use the New Controller? HOT 4
- Equivalent to aca-py start HOT 1
- Anything about WebHook handlers? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aries-cloudcontroller-python.