MCPcopy Create free account

hub / github.com/Delgan/loguru / functions

Functions1,426 in github.com/Delgan/loguru

↓ 692 callersMethodadd
r"""Add a handler sending log messages to a sink adequately configured. Parameters ---------- sink : |file-like object|_, |st
loguru/_logger.py:273
↓ 258 callersMethodremove
Remove a previously added handler and stop sending logs to its sink. Parameters ---------- handler_id : |int| or ``None``
loguru/_logger.py:1079
↓ 230 callersMethodinfo
r"""Log ``message.format(*args, **kwargs)`` with severity ``'INFO'``.
loguru/_logger.py:2218
↓ 222 callersMethodread
(self)
tests/test_reinstall.py:26
↓ 189 callersMethoddebug
r"""Log ``message.format(*args, **kwargs)`` with severity ``'DEBUG'``.
loguru/_logger.py:2214
↓ 90 callersMethodopt
r"""Parametrize a logging call to slightly change generated log message. Note that it's not possible to chain |opt| calls, the last one takes
loguru/_logger.py:1397
↓ 79 callersMethodexception
r"""Log an ``'ERROR'`` message while also capturing the currently handled exception. This method internally uses |sys.exc_info|, therefore it
loguru/_logger.py:2238
↓ 76 callersFunctioncheck_dir
(dir, *, files=None, size=None)
tests/conftest.py:79
↓ 66 callersFunctionparse
(text, *, strip=False, strict=True)
tests/conftest.py:69
↓ 53 callersFunctionfreeze_time
(monkeypatch)
tests/conftest.py:194
↓ 43 callersMethodbind
Bind attributes to the ``extra`` dict of each logged message record. This is used to add custom context to each logging call. Parame
loguru/_logger.py:1497
↓ 41 callersMethodstrip
(tokens)
loguru/_colorizer.py:199
↓ 40 callersMethodstart
Add a handler sending log messages to a sink adequately configured. Deprecated function, use |add| instead. Warnings -------
loguru/_logger.py:2256
↓ 38 callersMethodcatch
Return a decorator to automatically log possibly caught error in wrapped function. This is useful to ensure unexpected exceptions are logged,
loguru/_logger.py:1192
↓ 37 callersMethodlog
r"""Log ``message.format(*args, **kwargs)`` with severity ``level``. Note that if an |int| is provided as ``level``, the level is interpreted
loguru/_logger.py:2248
↓ 35 callersMethodlevel
r"""Add, update or retrieve a logging level. Logging levels are defined by their ``name`` to which a severity ``no``, an ansi ``color``
loguru/_logger.py:1627
↓ 27 callersMethodcomplete
(self)
tests/test_coroutine_sink.py:457
↓ 25 callersMethodconfigure
Configure the core logger. It should be noted that ``extra`` values set using this function are available across all modules, so this
loguru/_logger.py:1778
↓ 22 callersMethodparse
Parse raw logs and extract each entry as a |dict|. The logging format has to be specified as the regex ``pattern``, it will then be u
loguru/_logger.py:1940
↓ 17 callersFunctioncopied_logger_though_pickle
(logger)
tests/test_pickling.py:23
↓ 17 callersFunctionmake_logging_logger
(name, handler, fmt="%(message)s", level="DEBUG")
tests/conftest.py:295
↓ 17 callersFunctionnew_event_loop_context
()
tests/conftest.py:52
↓ 16 callersMethodpatch
Attach a function to modify the record dict created by each logging call. The ``patcher`` may be used to update the record on-the-fly before
loguru/_logger.py:1578
↓ 15 callersMethoderror
r"""Log ``message.format(*args, **kwargs)`` with severity ``'ERROR'``.
loguru/_logger.py:2230
↓ 15 callersMethodread
(self)
tests/test_multiprocessing.py:94
↓ 14 callersFunctionshould_colorize
(stream)
loguru/_colorama.py:6
↓ 14 callersFunctionworker
()
tests/test_coroutine_sink.py:27
↓ 12 callersMethodcontextualize
Bind attributes to the context-local ``extra`` dict while inside the ``with`` block. Contrary to |bind| there is no ``logger`` returned, the
loguru/_logger.py:1534
↓ 11 callersMethoddisable
Disable logging of messages coming from ``name`` module and its children. Developers of library using `Loguru` should absolutely disable it t
loguru/_logger.py:1730
↓ 11 callersFunctionlog
(sink, rep=1)
tests/test_add_sinks.py:17
↓ 10 callersMethod_log
(self, level, from_decorator, options, message, args, kwargs)
loguru/_logger.py:2068
↓ 9 callersMethodenable
Enable logging of messages coming from ``name`` module and its children. Logging is generally disabled by imported library using `Loguru`, he
loguru/_logger.py:1754
↓ 8 callersFunctionenv
(key, type_, default=None)
loguru/_defaults.py:4
↓ 8 callersFunctionshould_wrap
(stream)
loguru/_colorama.py:57
↓ 7 callersFunctiona
()
tests/test_exceptions_catch.py:267
↓ 7 callersMethodcolorize
(tokens, ansi_level)
loguru/_colorizer.py:207
↓ 7 callersFunctionfoo
(a, b)
tests/test_exceptions_catch.py:54
↓ 7 callersFunctionmain
()
tests/test_coroutine_sink.py:58
↓ 6 callersFunctioncoro
()
tests/exceptions/source/modern/decorate_async_generator.py:17
↓ 5 callersFunctioncompare_exception
(dirname, filename)
tests/test_exceptions_formatting.py:97
↓ 5 callersFunctiondefault_threading_excepthook
()
tests/conftest.py:121
↓ 5 callersFunctiondivide
(x, y)
tests/exceptions/source/ownership/usersite/somelib/__init__.py:1
↓ 5 callersMethoddone
(self, *, strict=True)
loguru/_colorizer.py:296
↓ 5 callersMethodfeed
(self, text, *, raw=False)
loguru/_colorizer.py:238
↓ 5 callersMethodwarning
r"""Log ``message.format(*args, **kwargs)`` with severity ``'WARNING'``.
loguru/_logger.py:2226
↓ 4 callersMethod_create_dirs
(self, path)
loguru/_file_sink.py:269
↓ 4 callersMethod_create_file
(self, path)
loguru/_file_sink.py:273
↓ 4 callersFunctionformat_
(x)
tests/test_standard_handler.py:130
↓ 4 callersFunctionload_ctime_functions
()
loguru/_ctime_functions.py:4
↓ 4 callersMethodprint
(self, record=None, *, exception=None)
loguru/_error_interceptor.py:13
↓ 4 callersMethodtrace
r"""Log ``message.format(*args, **kwargs)`` with severity ``'TRACE'``.
loguru/_logger.py:2210
↓ 4 callersMethodwrite
(self, message)
loguru/_file_sink.py:242
↓ 3 callersMethod__format__
Format the RecordFile instance. Parameters ---------- spec : str Format specification Returns --
loguru/_recattrs.py:98
↓ 3 callersMethod_create_path
(self)
loguru/_file_sink.py:265
↓ 3 callersFunction_expected_fallback_time_zone
()
tests/test_datetime.py:19
↓ 3 callersMethod_protected_lock
Acquire the lock, but fail fast if its already acquired by the current thread.
loguru/_handler.py:111
↓ 3 callersMethodasend
(self, value)
loguru/_logger.py:1359
↓ 3 callersFunctionaware_now
()
loguru/_datetime.py:176
↓ 3 callersFunctionbar
()
tests/exceptions/source/diagnose/no_error_message.py:13
↓ 3 callersFunctioncallme
(callback)
tests/exceptions/source/ownership/usersite/somelib/__init__.py:9
↓ 3 callersFunctionf
(n)
tests/test_exceptions_catch.py:18
↓ 3 callersMethodflush
(self)
tests/test_add_sinks.py:142
↓ 3 callersFunctionload_get_frame_function
()
loguru/_get_frame.py:15
↓ 3 callersFunctionlocal
()
tests/test_multiprocessing.py:387
↓ 3 callersFunctionnested
(i)
tests/exceptions/source/backtrace/nested.py:11
↓ 3 callersMethodprepare_format
(string)
loguru/_colorizer.py:393
↓ 3 callersFunctionremove_file
(path)
loguru/_file_sink.py:46
↓ 3 callersMethodshould_catch
(self)
loguru/_error_interceptor.py:10
↓ 3 callersMethodwrap
(tokens, *, ansi_level, color_tokens)
loguru/_colorizer.py:223
↓ 3 callersMethodwrite
(self, m)
tests/test_add_sinks.py:112
↓ 2 callersMethod_change_activation
(self, name, status)
loguru/_logger.py:1899
↓ 2 callersMethod_close_file
(self)
loguru/_file_sink.py:283
↓ 2 callersFunction_format_timezone
(dt, *, sep)
loguru/_datetime.py:41
↓ 2 callersMethod_is_file_mine
(self, file)
loguru/_better_exceptions.py:201
↓ 2 callersMethod_reopen_if_needed
(self)
loguru/_file_sink.py:292
↓ 2 callersMethod_template_to_string
(template)
loguru/_logger.py:2057
↓ 2 callersMethod_terminate_file
(self, *, is_rotating=False)
loguru/_file_sink.py:310
↓ 2 callersFunctiona
(x, y)
tests/exceptions/source/backtrace/suppressed_expression_direct.py:9
↓ 2 callersFunctiona
()
tests/exceptions/source/backtrace/chained_expression_indirect.py:9
↓ 2 callersFunctiona
()
tests/exceptions/source/modern/grouped_simple.py:9
↓ 2 callersFunctiona_not_decorated
()
tests/exceptions/source/backtrace/chained_expression_direct.py:17
↓ 2 callersMethodansify
(text)
loguru/_colorizer.py:410
↓ 2 callersMethodathrow
(self, *args, **kwargs)
loguru/_logger.py:1367
↓ 2 callersFunctionb
()
tests/exceptions/source/backtrace/chaining_first.py:18
↓ 2 callersFunctionb
()
tests/exceptions/source/backtrace/suppressed_expression_indirect.py:13
↓ 2 callersFunctionb_not_decorated
()
tests/exceptions/source/backtrace/chaining_second.py:30
↓ 2 callersFunctionb_not_decorated
()
tests/exceptions/source/backtrace/suppressed_expression_direct.py:21
↓ 2 callersFunctionc
()
tests/exceptions/source/backtrace/chaining_second.py:34
↓ 2 callersFunctionc_not_decorated
()
tests/exceptions/source/backtrace/chaining_third.py:42
↓ 2 callersFunctioncomplete
()
tests/test_coroutine_sink.py:553
↓ 2 callersFunctioncreate_handler_lock
()
loguru/_locks_machinery.py:10
↓ 2 callersFunctioncreate_logger_lock
()
loguru/_locks_machinery.py:7
↓ 2 callersFunctiondeeper_subworker
()
tests/test_reinstall.py:41
↓ 2 callersFunctionf
()
tests/exceptions/source/backtrace/no_tb.py:9
↓ 2 callersFunctionf
(i)
tests/exceptions/source/backtrace/nested_wrapping.py:9
↓ 2 callersMethodfileno
(self)
tests/conftest.py:96
↓ 2 callersFunctionfoo
()
tests/test_coroutine_sink.py:204
↓ 2 callersFunctionfoo
()
tests/exceptions/source/modern/walrus_operator.py:7
↓ 2 callersFunctionfunc
(log_message)
tests/test_add_sinks.py:85
↓ 2 callersFunctiongenerate_rename_path
(root, ext, creation_time)
loguru/_file_sink.py:16
next →1–100 of 1,426, ranked by callers