cryptoeax / arbbot

Arbitrator, a bitcoin/altcoin arbitrage trading bot
https://gitter.im/cryptoeax-arbbot/Lobby
GNU General Public License v3.0
200 stars 78 forks source link

Add a log level argument to logg() #104

Open cryptoeax opened 6 years ago

cryptoeax commented 6 years ago

https://github.com/cryptoeax/arbbot/blob/d6c7990e55e1d242a803248681923f8237abe1f6/bot/utils.php#L42

Currently logg() only accepts a message, we need to add a log level argument to it. We can start simple with three values, like 'info', 'warning' and 'error' and have it throw on unknown values for now to keep it extensible in the future.

sigismund commented 6 years ago

Dips on this one. :)