Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

axabc

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

axabc - npm Package Compare versions

Comparing version
0.0.59
to
0.0.60
+18
axabc/logging/simple_stream_logger.py
import logging
from datetime import datetime
from .logger_with_id import LoggerWithID
class SimpleStreamLogger(LoggerWithID):
def __init__(self, name, level=logging.DEBUG):
super().__init__(name, level=level)
# Create a formatter to specify the log record's format
self.formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
# Create a console handler to display logs on the console
self.stream_handler = logging.StreamHandler()
self.stream_handler.setFormatter(self.formatter)
self.addHandler(self.stream_handler)
+1
-1
Metadata-Version: 2.1
Name: axabc
Version: 0.0.59
Version: 0.0.60
Summary: library that defines abstractions for some repeated essences

@@ -5,0 +5,0 @@ Author: axdjuraev

@@ -30,3 +30,4 @@ README.md

axabc/logging/simple_file_logger.py
axabc/logging/simple_stream_logger.py
axabc/test/__init__.py
axabc/test/base_async_test.py
import logging
from typing import Any
from uuid import uuid4, UUID
from dataclasses import dataclass
@dataclass

@@ -11,2 +11,3 @@ class LogResult:

class LoggerWithID(logging.Logger):

@@ -41,1 +42,7 @@ def __init__(self, name, level=logging.NOTSET):

return LogResult(id=unique_id, msg=msg)
@classmethod
def create(cls, name: str):
cls.manager.loggerClass = cls
return cls.manager.getLogger(name)
Metadata-Version: 2.1
Name: axabc
Version: 0.0.59
Version: 0.0.60
Summary: library that defines abstractions for some repeated essences

@@ -5,0 +5,0 @@ Author: axdjuraev