From 148f2ebc140c336b61e87654e467b14df3e2af5e Mon Sep 17 00:00:00 2001 From: Vijini Mallawaarachchi Date: Fri, 16 Aug 2024 16:45:25 +0930 Subject: [PATCH] DEV: fix logging names --- src/graphbin2/cli.py | 2 +- src/graphbin2/graphbin2_Flye.py | 9 ++++++++- src/graphbin2/graphbin2_MEGAHIT.py | 10 +++++++++- src/graphbin2/graphbin2_SGA.py | 10 +++++++++- src/graphbin2/graphbin2_SPAdes.py | 10 +++++++++- 5 files changed, 36 insertions(+), 5 deletions(-) diff --git a/src/graphbin2/cli.py b/src/graphbin2/cli.py index f909d85..1ec4ac0 100644 --- a/src/graphbin2/cli.py +++ b/src/graphbin2/cli.py @@ -173,7 +173,7 @@ def main( # Setup logger # ----------------------- - logger = logging.getLogger("GraphBin2 1.2.0") + logger = logging.getLogger(f"GraphBin2 {__version__}") logger.setLevel(logging.DEBUG) formatter = logging.Formatter("%(asctime)s - %(levelname)s - %(message)s") consoleHeader = logging.StreamHandler() diff --git a/src/graphbin2/graphbin2_Flye.py b/src/graphbin2/graphbin2_Flye.py index ae3cd0a..83eec28 100644 --- a/src/graphbin2/graphbin2_Flye.py +++ b/src/graphbin2/graphbin2_Flye.py @@ -19,6 +19,13 @@ from .bidirectionalmap.bidirectionalmap import BidirectionalMap +__author__ = "Vijini Mallawaarachchi, Anuradha Wickramarachchi, and Yu Lin" +__copyright__ = "Copyright 2020, GraphBin2 Project" +__license__ = "BSD" +__version__ = "1.3.2" +__maintainer__ = "Vijini Mallawaarachchi" +__email__ = "viji.mallawaarachchi@gmail.com" +__status__ = "Stable Release" def run(args): # Get arguments @@ -40,7 +47,7 @@ def run(args): # Setup logger # ----------------------- - logger = logging.getLogger("GraphBin2") + logger = logging.getLogger(f"GraphBin2 {__version__}") logger.setLevel(logging.DEBUG) formatter = logging.Formatter("%(asctime)s - %(levelname)s - %(message)s") consoleHeader = logging.StreamHandler() diff --git a/src/graphbin2/graphbin2_MEGAHIT.py b/src/graphbin2/graphbin2_MEGAHIT.py index 97ce366..beb8a79 100644 --- a/src/graphbin2/graphbin2_MEGAHIT.py +++ b/src/graphbin2/graphbin2_MEGAHIT.py @@ -19,6 +19,14 @@ from .bidirectionalmap.bidirectionalmap import BidirectionalMap +__author__ = "Vijini Mallawaarachchi, Anuradha Wickramarachchi, and Yu Lin" +__copyright__ = "Copyright 2020, GraphBin2 Project" +__license__ = "BSD" +__version__ = "1.3.2" +__maintainer__ = "Vijini Mallawaarachchi" +__email__ = "viji.mallawaarachchi@gmail.com" +__status__ = "Stable Release" + def run(args): # Get arguments @@ -39,7 +47,7 @@ def run(args): # Setup logger # ----------------------- - logger = logging.getLogger("GraphBin2") + logger = logging.getLogger(f"GraphBin2 {__version__}") logger.setLevel(logging.DEBUG) formatter = logging.Formatter("%(asctime)s - %(levelname)s - %(message)s") consoleHeader = logging.StreamHandler() diff --git a/src/graphbin2/graphbin2_SGA.py b/src/graphbin2/graphbin2_SGA.py index af6b2aa..e8478f7 100644 --- a/src/graphbin2/graphbin2_SGA.py +++ b/src/graphbin2/graphbin2_SGA.py @@ -19,6 +19,14 @@ from .bidirectionalmap.bidirectionalmap import BidirectionalMap +__author__ = "Vijini Mallawaarachchi, Anuradha Wickramarachchi, and Yu Lin" +__copyright__ = "Copyright 2020, GraphBin2 Project" +__license__ = "BSD" +__version__ = "1.3.2" +__maintainer__ = "Vijini Mallawaarachchi" +__email__ = "viji.mallawaarachchi@gmail.com" +__status__ = "Stable Release" + def run(args): # Get arguments @@ -39,7 +47,7 @@ def run(args): # Setup logger # ----------------------- - logger = logging.getLogger("GraphBin2") + logger = logging.getLogger(f"GraphBin2 {__version__}") logger.setLevel(logging.DEBUG) formatter = logging.Formatter("%(asctime)s - %(levelname)s - %(message)s") consoleHeader = logging.StreamHandler() diff --git a/src/graphbin2/graphbin2_SPAdes.py b/src/graphbin2/graphbin2_SPAdes.py index 86112af..b7d46d5 100644 --- a/src/graphbin2/graphbin2_SPAdes.py +++ b/src/graphbin2/graphbin2_SPAdes.py @@ -19,6 +19,14 @@ from .bidirectionalmap.bidirectionalmap import BidirectionalMap +__author__ = "Vijini Mallawaarachchi, Anuradha Wickramarachchi, and Yu Lin" +__copyright__ = "Copyright 2020, GraphBin2 Project" +__license__ = "BSD" +__version__ = "1.3.2" +__maintainer__ = "Vijini Mallawaarachchi" +__email__ = "viji.mallawaarachchi@gmail.com" +__status__ = "Stable Release" + def run(args): # Get arguments @@ -39,7 +47,7 @@ def run(args): # Setup logger # ----------------------- - logger = logging.getLogger("GraphBin2") + logger = logging.getLogger(f"GraphBin2 {__version__}") logger.setLevel(logging.DEBUG) formatter = logging.Formatter("%(asctime)s - %(levelname)s - %(message)s") consoleHeader = logging.StreamHandler()