Skip to content

prefer logging to print  #3

@prjemian

Description

@prjemian

Consider use of the python logging module instead of print().

see:

Quoting the latter:

The Python logging library lets you:

  • Control what’s emitted
  • Define what types of information you want to include in your logs
  • Configure how it looks when it’s emitted
  • Most importantly, set the destination for your logs

See this logging setup for bluesky in the use_bluesky repository. Here are examples of how it is used: logger.info() and logger.warning()

The USAXS describes and shows examples of the log files produced by this logging.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions