Skip to content

Commit 554da79

Browse files
committed
Instance: add the logger getter
This can be useful if some logger is set and you want to get access to it afterwards.
1 parent 3117a8c commit 554da79

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

generator/templates/override.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,11 @@ def log_handler(instance, log_level, ctx, fmt, va_list):
197197
self._log_handler = log_handler
198198
self.log_set(self._log_handler, None)
199199

200+
def get_logger(self):
201+
"""Return the logger attached to the libVLC Instance (None by default)
202+
"""
203+
return self._logger
204+
200205
class Media:
201206
"""Create a new Media instance.
202207

0 commit comments

Comments
 (0)