Skip to content

Commit

Permalink
Bump version to 0.1.1
Browse files Browse the repository at this point in the history
Add a critical method to the logger class that is being used by ytmdl.
  • Loading branch information
deepjyoti30 committed Nov 20, 2020
1 parent f673adb commit 5198e40
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/en/docs/logger.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,5 @@ Other useful methods

- `add_stream(stream_to_be_added)` - Add streams to the stream container. More in the [streams](/streams/) page
- `list_available_levels()` - List all available levels to stdout
- `hold()` - Hold the screen for user input. Useful if the logger needs to be haulted afer showing a certain output.
- `hold()` - Hold the screen for user input. Useful if the logger needs to be haulted afer showing a certain output.
- `get_log_file()` - Get the current log file that is being written to.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
if __name__ == '__main__':
setuptools.setup(
name="simber",
version="0.1.1",
version="0.1.2",
author="Deepjyoti Barman",
author_email="deep.barma30@gmail.com",
description="Simple, minimal, powerful logging library for Python",
Expand Down
7 changes: 7 additions & 0 deletions simber/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,13 @@ def add_stream(self, stream_to_be_added: OutputStream):

self._streams.add(stream_to_be_added)

def get_log_file(self):
"""Get the log file that is being written to.
This is just to support backward functionality for ytmdl
"""
return self._log_file

def list_available_levels(self):
"""
List all the available logger levels.
Expand Down

0 comments on commit 5198e40

Please sign in to comment.