Tambo is a versatile logging framework currently in development.
To start using
Tambo right away all you need to do is:
import Tambo: this is usually done in your
defaultTambo singleton like so
let log = Tambo.default.
In order to use Tambo the way it's ment to be used, you need to create an instance with an identifier (helpfull to track the logging source in complex application that could have multiple Tambo instances).
let log = Tambo(identifier: "com.my.logger")
Then you need to create a strem object which, in Tambo language, defines where you want the logs to be displayed/sent to. In this example let's create an Xcode console stream using the
let console = TConsoleStream(identifier: "com.my.console", printMode: .print)
Once we have created a stream we can configure it as much as we want and after that we're ready to add it to the
Tambo instance in order for it to start logging.
Now we're ready to show some logs to the console. YAY!! 🎉🎉🎉🎉
In priority order:
Every log level has a correspondent method in the
When you call that api you can pass anything as a first parameter and optionally a
log.info("Request succeeded") log.info(["one", "two", 3]) log.info(UIViewController(), context: ["url": request.url])
This framework is still in development you're welcome to