refactored logger
This commit is contained in:
parent
68e7d7cb3c
commit
016a5e938f
@ -1,15 +1,11 @@
|
|||||||
from collections import defaultdict
|
|
||||||
from typing import Optional, Dict, Type, Tuple, List, TYPE_CHECKING
|
|
||||||
import uuid
|
|
||||||
import random
|
import random
|
||||||
|
import uuid
|
||||||
|
from collections import defaultdict
|
||||||
|
from typing import Optional, Dict, Tuple, List
|
||||||
|
|
||||||
from ..utils.shared import (
|
|
||||||
SONG_LOGGER as LOGGER
|
|
||||||
)
|
|
||||||
from .metadata import Metadata
|
from .metadata import Metadata
|
||||||
from .option import Options
|
from .option import Options
|
||||||
if TYPE_CHECKING:
|
from ..utils.shared import OBJECT_LOGGER as LOGGER
|
||||||
from .collection import Collection
|
|
||||||
|
|
||||||
|
|
||||||
class DatabaseObject:
|
class DatabaseObject:
|
||||||
|
@ -1,13 +1,11 @@
|
|||||||
from collections import defaultdict
|
from typing import Tuple, List, Set, Type, Optional
|
||||||
from typing import Tuple, List, Set, Dict, Type, Union, Optional
|
|
||||||
|
|
||||||
from . import page_attributes
|
from . import page_attributes
|
||||||
from .download import Download
|
from .download import Download
|
||||||
from .multiple_options import MultiPageOptions
|
from .multiple_options import MultiPageOptions
|
||||||
from ..abstract import Page
|
from ..abstract import Page
|
||||||
from ...objects import Options, DatabaseObject, Source
|
|
||||||
from ...utils.shared import DOWNLOAD_LOGGER as LOGGER
|
|
||||||
from ..support_classes.download_result import DownloadResult
|
from ..support_classes.download_result import DownloadResult
|
||||||
|
from ...objects import DatabaseObject, Source
|
||||||
|
|
||||||
|
|
||||||
class Search(Download):
|
class Search(Download):
|
||||||
|
@ -44,21 +44,17 @@ logging.basicConfig(
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
SONG_LOGGER = logging.getLogger("song-obj")
|
OBJECT_LOGGER = logging.getLogger("objects")
|
||||||
SEARCH_LOGGER = logging.getLogger("mb-cli")
|
TARGET_LOGGER = logging.getLogger("target")
|
||||||
INIT_PATH_LOGGER = logging.getLogger("init_path")
|
|
||||||
DATABASE_LOGGER = logging.getLogger("database")
|
DATABASE_LOGGER = logging.getLogger("database")
|
||||||
METADATA_DOWNLOAD_LOGGER = logging.getLogger("metadata")
|
|
||||||
URL_DOWNLOAD_LOGGER = logging.getLogger("AudioSource")
|
|
||||||
TAGGING_LOGGER = logging.getLogger("tagging")
|
|
||||||
YOUTUBE_LOGGER = logging.getLogger("Youtube")
|
YOUTUBE_LOGGER = logging.getLogger("Youtube")
|
||||||
MUSIFY_LOGGER = logging.getLogger("Musify")
|
MUSIFY_LOGGER = logging.getLogger("Musify")
|
||||||
PATH_LOGGER = logging.getLogger("create-paths")
|
|
||||||
DOWNLOAD_LOGGER = logging.getLogger("download")
|
|
||||||
LYRICS_LOGGER = logging.getLogger("lyrics")
|
|
||||||
GENIUS_LOGGER = logging.getLogger("genius")
|
GENIUS_LOGGER = logging.getLogger("genius")
|
||||||
ENCYCLOPAEDIA_METALLUM_LOGGER = logging.getLogger("ma")
|
ENCYCLOPAEDIA_METALLUM_LOGGER = logging.getLogger("ma")
|
||||||
|
|
||||||
|
DOWNLOAD_LOGGER = logging.getLogger("download")
|
||||||
|
|
||||||
NOT_A_GENRE = ".", "..", "misc_scripts", "Music", "script", ".git", ".idea"
|
NOT_A_GENRE = ".", "..", "misc_scripts", "Music", "script", ".git", ".idea"
|
||||||
MUSIC_DIR = Path(os.path.expanduser("~"), "Music")
|
MUSIC_DIR = Path(os.path.expanduser("~"), "Music")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user