navigate Logo

Getting Started

  • Quick Start Guide
  • Software Installation
  • I Want To…

User Guide

  • Supported Hardware
  • Supported File Formats
  • User Interface Walkthrough
  • Setting Up A Microscope
  • Acquiring Data
  • Case Studies

Development

  • Contributing Guidelines
  • Developer Install
  • Software Architecture
  • Feature Container
  • REST-API
  • Plugin Architecture

Troubleshooting & Known Issues

  • Troubleshooting
  • Known Issues

Plugins

  • navigate Plugin Template
  • navigate Confocal Projection
  • navigate at Scale
  • navigate Constant Velocity Acquisition
  • navigate MMCore
  • navigate ilastik Server
  • navigate Photoactivation

Reference

  • Implemented Microscopes
  • Software API
    • navigate.config
    • navigate.controller
    • navigate.controller.configurator
    • navigate.log_files
      • navigate.log_files.filters
      • navigate.log_files.log_functions
        • navigate.log_files.log_functions.eliminate_old_log_files
        • navigate.log_files.log_functions.find_filename
        • navigate.log_files.log_functions.get_folder_date
        • navigate.log_files.log_functions.load_performance_log
        • navigate.log_files.log_functions.log_setup
        • navigate.log_files.log_functions.performance
    • navigate.model
    • navigate.tools
    • navigate.view
navigate
  • Software API
  • navigate.log_files
  • navigate.log_files.log_functions
  • navigate.log_files.log_functions.log_setup
  • View page source

navigate.log_files.log_functions.log_setup

navigate.log_files.log_functions.log_setup(logging_configuration: str, logging_path: Optional[str] = None, queue=None, start_listener=False) → Optional[Union[Queue, tuple[multiprocessing.context.BaseContext.Queue, logging.handlers.QueueListener]]]

Setup logging configuration

Initialize a logger from a YAML file containing information in the Python logging dictionary format.

Note

Additional information here: https://docs.python.org/3/library/logging.config.html#logging-config-dictschema

Parameters:
  • logging_configuration (str) – Path to file to be loaded. Relative to the location of the folder containing this file.

  • logging_path (str, optional) – Path to store logs. Defaults to navigate_path/logs

  • queue (multiprocessing.Queue, optional) – Queue to use for logging from sub-processes. If None, a new queue will be created if start_listener is True. Defaults to None.

  • start_listener (bool, optional) – Whether to start a listener for the queue. Defaults to False.

Returns:

If start_listener is True, returns a tuple containing the queue and the listener. If start_listener is False and a queue is provided, returns the queue. Otherwise, returns None.

Return type:

Optional[Union[mp.Queue, tuple[mp.Queue, logging.handlers.QueueListener]]]

Previous Next

© Copyright 2025, Dean Lab, UT Southwestern Medical Center.