diff --git a/src/aliby/pipeline.py b/src/aliby/pipeline.py index 01484929d8b2ebcb779f5d2ce10f08319b6beb21..eb7932bc4336f1c89f490e3f972d197f2c3a18f0 100644 --- a/src/aliby/pipeline.py +++ b/src/aliby/pipeline.py @@ -183,13 +183,13 @@ class Pipeline(ProcessABC): @staticmethod def setLogger( - folder, file_level: str = "INFO", stream_level: str = "WARNING" + folder, file_level: str = "INFO", stream_level: str = "INFO" ): """Initialise and format logger.""" logger = logging.getLogger("aliby") logger.setLevel(getattr(logging, file_level)) formatter = logging.Formatter( - "%(asctime)s - %(levelname)s:%(message)s", + "%(asctime)s - %(levelname)s: %(message)s", datefmt="%Y-%m-%dT%H:%M:%S%z", ) # for streams - stdout, files, etc. @@ -207,7 +207,7 @@ class Pipeline(ProcessABC): """Get meta data and identify each position.""" config = self.parameters.to_dict() # print configuration - print("\nalibylite\n") + logging.getLogger("aliby").info(f"Using alibylite.") try: logging.getLogger("aliby").info(f"Using Baby {baby.__version__}.") except AttributeError: