netromdk / slacker

Slacker - Easy access to the Slack API and admin of workspaces/teams.
MIT License
14 stars 0 forks source link

Session class #87

Closed netromdk closed 6 years ago

netromdk commented 6 years ago

The Session is a singleton that only lives for the duration of the program's life cycle.

It should contain the quiet and maybe verbose mode settings. This also means we can avoid the import cycle and strong dependency between Logger and Config. And thus when creating a new log instance it'll ask the session if it is in quiet mode so as not to enable the stream handler.