Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX-#7201: Update docs on how to enable Modin logs for high-level API and low-level API #7209

Merged
merged 2 commits into from
Apr 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions docs/usage_guide/advanced_usage/modin_logging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,24 @@ Disable Modin logging like so:

# User code goes here
YarShev marked this conversation as resolved.
Show resolved Hide resolved

In Modin the lower-level functionality is logged in debug level, and higher level functionality in info level.
By default when logging is enabled in Modin, both high level and low level functionality are logged.
The below example script could be used to switch between logging all functions vs only logging higher level functions.
Setting logger level to ``logging.INFO`` logs only higher level functions.

.. code-block:: python

import modin.pandas as pd
from modin.logging.config import get_logger
from modin.config import LogMode
import logging
LogMode.enable()
logger = get_logger()
logger.setLevel(logging.INFO) # Replace with logger.setLevel(logging.DEBUG) for lower level logs
df = pd.DataFrame({'col1': [1, 2], 'col2': [3, 4]})
df = pd.concat([df, df])


Debugging from user defined functions:

.. warning::
Expand Down
Loading