mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Add documentation to logging on where to find installer logs
Also send bootstrap & installer logs to same file.
This commit is contained in:
@@ -26,7 +26,7 @@ def main():
|
|||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
os.makedirs(install_prefix, exist_ok=True)
|
os.makedirs(install_prefix, exist_ok=True)
|
||||||
file_logger = logging.FileHandler(os.path.join(install_prefix, 'bootstrap.log'))
|
file_logger = logging.FileHandler(os.path.join(install_prefix, 'installer.log'))
|
||||||
file_logger.setFormatter(logging.Formatter('%(asctime)s %(message)s'))
|
file_logger.setFormatter(logging.Formatter('%(asctime)s %(message)s'))
|
||||||
logger.addHandler(file_logger)
|
logger.addHandler(file_logger)
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,8 @@ before things went bad, and can help us understand the problem so we can fix it.
|
|||||||
|
|
||||||
TLJH collects logs from JupyterHub, Configurable HTTP Proxy, & from each individual
|
TLJH collects logs from JupyterHub, Configurable HTTP Proxy, & from each individual
|
||||||
user's notebook server. All the logs are accessible via `journalctl <https://www.freedesktop.org/software/systemd/man/journalctl.html>`_.
|
user's notebook server. All the logs are accessible via `journalctl <https://www.freedesktop.org/software/systemd/man/journalctl.html>`_.
|
||||||
|
The installer also writes logs to disk, to help with cases where the
|
||||||
|
installer did not succeed.
|
||||||
|
|
||||||
.. warning::
|
.. warning::
|
||||||
|
|
||||||
@@ -17,6 +19,14 @@ user's notebook server. All the logs are accessible via `journalctl <https://www
|
|||||||
a problem you might have, be careful to redact any private information (such
|
a problem you might have, be careful to redact any private information (such
|
||||||
as usernames) from the snippet first!
|
as usernames) from the snippet first!
|
||||||
|
|
||||||
|
.. _troubleshooting/logs#installer:
|
||||||
|
|
||||||
|
Installer Logs
|
||||||
|
==============
|
||||||
|
|
||||||
|
The JupyterHub installer writes log messages to ``/opt/tljh/installer.log``.
|
||||||
|
This is very useful if the installation fails for any reason.
|
||||||
|
|
||||||
.. _troubleshoot_logs_jupyterhub:
|
.. _troubleshoot_logs_jupyterhub:
|
||||||
|
|
||||||
JupyterHub Logs
|
JupyterHub Logs
|
||||||
|
|||||||
Reference in New Issue
Block a user