Metadata-Version: 2.1
Name: loggingA
Version: 0.0.6
Summary: 自定义日志模块
Home-page: https://github.com/al6nlee/loggingA
Author: alan
Author-email: al6nlee@gmail.com
License: MIT
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Software Development
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE

## 创作背景

> 每个项目都要配置一次日志，繁琐，故自定义了一个库

## 功能

- 将每一个级别的日志分别写入。相较于大杂烩，层次更清晰
- 开放日志实例名的定制
- 开放日志目录定制
- 更多扩展

## 安装

### 方式一： python

```
python3 setup.py install
```

### 方式二： pip

```
pip3 install loggingA
```

## 使用

```python
from loggingA.logger import LoggerA


# Example usage
logger = LoggerA(level=logging.DEBUG, log_file="example.log")
logger.debug("This is a debug message")
logger.info("This is an info message")
logger.warning("This is a warning message")
logger.error("This is an error message")
logger.critical("This is a critical message")

# Example of logging within a function
example_function(logger)
```
