Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Delgan/loguru
/ functions
Functions
1,426 in github.com/Delgan/loguru
⨍
Functions
1,426
◇
Types & classes
88
↳
Endpoints
30
↓ 692 callers
Method
add
r"""Add a handler sending log messages to a sink adequately configured. Parameters ---------- sink : |file-like object|_, |st
loguru/_logger.py:273
↓ 258 callers
Method
remove
Remove a previously added handler and stop sending logs to its sink. Parameters ---------- handler_id : |int| or ``None``
loguru/_logger.py:1079
↓ 230 callers
Method
info
r"""Log ``message.format(*args, **kwargs)`` with severity ``'INFO'``.
loguru/_logger.py:2218
↓ 222 callers
Method
read
(self)
tests/test_reinstall.py:26
↓ 189 callers
Method
debug
r"""Log ``message.format(*args, **kwargs)`` with severity ``'DEBUG'``.
loguru/_logger.py:2214
↓ 90 callers
Method
opt
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 callers
Method
exception
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 callers
Function
check_dir
(dir, *, files=None, size=None)
tests/conftest.py:79
↓ 66 callers
Function
parse
(text, *, strip=False, strict=True)
tests/conftest.py:69
↓ 53 callers
Function
freeze_time
(monkeypatch)
tests/conftest.py:194
↓ 43 callers
Method
bind
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 callers
Method
strip
(tokens)
loguru/_colorizer.py:199
↓ 40 callers
Method
start
Add a handler sending log messages to a sink adequately configured. Deprecated function, use |add| instead. Warnings -------
loguru/_logger.py:2256
↓ 38 callers
Method
catch
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 callers
Method
log
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 callers
Method
level
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 callers
Method
complete
(self)
tests/test_coroutine_sink.py:457
↓ 25 callers
Method
configure
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 callers
Method
parse
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 callers
Function
copied_logger_though_pickle
(logger)
tests/test_pickling.py:23
↓ 17 callers
Function
make_logging_logger
(name, handler, fmt="%(message)s", level="DEBUG")
tests/conftest.py:295
↓ 17 callers
Function
new_event_loop_context
()
tests/conftest.py:52
↓ 16 callers
Method
patch
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 callers
Method
error
r"""Log ``message.format(*args, **kwargs)`` with severity ``'ERROR'``.
loguru/_logger.py:2230
↓ 15 callers
Method
read
(self)
tests/test_multiprocessing.py:94
↓ 14 callers
Function
should_colorize
(stream)
loguru/_colorama.py:6
↓ 14 callers
Function
worker
()
tests/test_coroutine_sink.py:27
↓ 12 callers
Method
contextualize
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 callers
Method
disable
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 callers
Function
log
(sink, rep=1)
tests/test_add_sinks.py:17
↓ 10 callers
Method
_log
(self, level, from_decorator, options, message, args, kwargs)
loguru/_logger.py:2068
↓ 9 callers
Method
enable
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 callers
Function
env
(key, type_, default=None)
loguru/_defaults.py:4
↓ 8 callers
Function
should_wrap
(stream)
loguru/_colorama.py:57
↓ 7 callers
Function
a
()
tests/test_exceptions_catch.py:267
↓ 7 callers
Method
colorize
(tokens, ansi_level)
loguru/_colorizer.py:207
↓ 7 callers
Function
foo
(a, b)
tests/test_exceptions_catch.py:54
↓ 7 callers
Function
main
()
tests/test_coroutine_sink.py:58
↓ 6 callers
Function
coro
()
tests/exceptions/source/modern/decorate_async_generator.py:17
↓ 5 callers
Function
compare_exception
(dirname, filename)
tests/test_exceptions_formatting.py:97
↓ 5 callers
Function
default_threading_excepthook
()
tests/conftest.py:121
↓ 5 callers
Function
divide
(x, y)
tests/exceptions/source/ownership/usersite/somelib/__init__.py:1
↓ 5 callers
Method
done
(self, *, strict=True)
loguru/_colorizer.py:296
↓ 5 callers
Method
feed
(self, text, *, raw=False)
loguru/_colorizer.py:238
↓ 5 callers
Method
warning
r"""Log ``message.format(*args, **kwargs)`` with severity ``'WARNING'``.
loguru/_logger.py:2226
↓ 4 callers
Method
_create_dirs
(self, path)
loguru/_file_sink.py:269
↓ 4 callers
Method
_create_file
(self, path)
loguru/_file_sink.py:273
↓ 4 callers
Function
format_
(x)
tests/test_standard_handler.py:130
↓ 4 callers
Function
load_ctime_functions
()
loguru/_ctime_functions.py:4
↓ 4 callers
Method
print
(self, record=None, *, exception=None)
loguru/_error_interceptor.py:13
↓ 4 callers
Method
trace
r"""Log ``message.format(*args, **kwargs)`` with severity ``'TRACE'``.
loguru/_logger.py:2210
↓ 4 callers
Method
write
(self, message)
loguru/_file_sink.py:242
↓ 3 callers
Method
__format__
Format the RecordFile instance. Parameters ---------- spec : str Format specification Returns --
loguru/_recattrs.py:98
↓ 3 callers
Method
_create_path
(self)
loguru/_file_sink.py:265
↓ 3 callers
Function
_expected_fallback_time_zone
()
tests/test_datetime.py:19
↓ 3 callers
Method
_protected_lock
Acquire the lock, but fail fast if its already acquired by the current thread.
loguru/_handler.py:111
↓ 3 callers
Method
asend
(self, value)
loguru/_logger.py:1359
↓ 3 callers
Function
aware_now
()
loguru/_datetime.py:176
↓ 3 callers
Function
bar
()
tests/exceptions/source/diagnose/no_error_message.py:13
↓ 3 callers
Function
callme
(callback)
tests/exceptions/source/ownership/usersite/somelib/__init__.py:9
↓ 3 callers
Function
f
(n)
tests/test_exceptions_catch.py:18
↓ 3 callers
Method
flush
(self)
tests/test_add_sinks.py:142
↓ 3 callers
Function
load_get_frame_function
()
loguru/_get_frame.py:15
↓ 3 callers
Function
local
()
tests/test_multiprocessing.py:387
↓ 3 callers
Function
nested
(i)
tests/exceptions/source/backtrace/nested.py:11
↓ 3 callers
Method
prepare_format
(string)
loguru/_colorizer.py:393
↓ 3 callers
Function
remove_file
(path)
loguru/_file_sink.py:46
↓ 3 callers
Method
should_catch
(self)
loguru/_error_interceptor.py:10
↓ 3 callers
Method
wrap
(tokens, *, ansi_level, color_tokens)
loguru/_colorizer.py:223
↓ 3 callers
Method
write
(self, m)
tests/test_add_sinks.py:112
↓ 2 callers
Method
_change_activation
(self, name, status)
loguru/_logger.py:1899
↓ 2 callers
Method
_close_file
(self)
loguru/_file_sink.py:283
↓ 2 callers
Function
_format_timezone
(dt, *, sep)
loguru/_datetime.py:41
↓ 2 callers
Method
_is_file_mine
(self, file)
loguru/_better_exceptions.py:201
↓ 2 callers
Method
_reopen_if_needed
(self)
loguru/_file_sink.py:292
↓ 2 callers
Method
_template_to_string
(template)
loguru/_logger.py:2057
↓ 2 callers
Method
_terminate_file
(self, *, is_rotating=False)
loguru/_file_sink.py:310
↓ 2 callers
Function
a
(x, y)
tests/exceptions/source/backtrace/suppressed_expression_direct.py:9
↓ 2 callers
Function
a
()
tests/exceptions/source/backtrace/chained_expression_indirect.py:9
↓ 2 callers
Function
a
()
tests/exceptions/source/modern/grouped_simple.py:9
↓ 2 callers
Function
a_not_decorated
()
tests/exceptions/source/backtrace/chained_expression_direct.py:17
↓ 2 callers
Method
ansify
(text)
loguru/_colorizer.py:410
↓ 2 callers
Method
athrow
(self, *args, **kwargs)
loguru/_logger.py:1367
↓ 2 callers
Function
b
()
tests/exceptions/source/backtrace/chaining_first.py:18
↓ 2 callers
Function
b
()
tests/exceptions/source/backtrace/suppressed_expression_indirect.py:13
↓ 2 callers
Function
b_not_decorated
()
tests/exceptions/source/backtrace/chaining_second.py:30
↓ 2 callers
Function
b_not_decorated
()
tests/exceptions/source/backtrace/suppressed_expression_direct.py:21
↓ 2 callers
Function
c
()
tests/exceptions/source/backtrace/chaining_second.py:34
↓ 2 callers
Function
c_not_decorated
()
tests/exceptions/source/backtrace/chaining_third.py:42
↓ 2 callers
Function
complete
()
tests/test_coroutine_sink.py:553
↓ 2 callers
Function
create_handler_lock
()
loguru/_locks_machinery.py:10
↓ 2 callers
Function
create_logger_lock
()
loguru/_locks_machinery.py:7
↓ 2 callers
Function
deeper_subworker
()
tests/test_reinstall.py:41
↓ 2 callers
Function
f
()
tests/exceptions/source/backtrace/no_tb.py:9
↓ 2 callers
Function
f
(i)
tests/exceptions/source/backtrace/nested_wrapping.py:9
↓ 2 callers
Method
fileno
(self)
tests/conftest.py:96
↓ 2 callers
Function
foo
()
tests/test_coroutine_sink.py:204
↓ 2 callers
Function
foo
()
tests/exceptions/source/modern/walrus_operator.py:7
↓ 2 callers
Function
func
(log_message)
tests/test_add_sinks.py:85
↓ 2 callers
Function
generate_rename_path
(root, ext, creation_time)
loguru/_file_sink.py:16
next →
1–100 of 1,426, ranked by callers