mobolic / facebook-sdk

Python SDK for Facebook's Graph API
https://facebook-sdk.readthedocs.io/
Apache License 2.0
2.75k stars 952 forks source link

Add logging and logging levels so that we can see the actual API request/response #220

Open freddy-craftsy opened 9 years ago

freddy-craftsy commented 9 years ago

It would be really great if I could set a logging level when using this library that would log the API requests being made.

This way when I file a bug with developers.facebook.com, and they ask me for the API requests and response, I don't have to patch this library to output them.

Thanks!

martey commented 9 years ago

If you (or someone else) wants to create a pull request for this, it would probably be accepted, but I don't think I will be able to work on this in the near future.

seawolf42 commented 8 years ago

+1. I would be happy to create a PR if this is still desired.

webus commented 6 years ago

simple solution

add this lines before you start working with library

import logging
logging.basicConfig(level=logging.DEBUG)