semvec/pypi-packages huggingface dataset:
devfac-py-logger 0.2.2
Simple, Colored, File and Line number printable logger
License: MIT
Requires Python: >=3

# devfacPyLogger
Simple, Colored, File and Line number printable python logger

I wanted to log like this

1. colored 
2. file name
3. line number
4. time
5. print type of logs by different func name

```
[2021-11-09 22:53:41.227][INF][test_logger.py:39] info log
[2021-11-09 22:53:41.229][DBG][test_logger.py:40] debug log
[2021-11-09 22:53:41.230][ERR][test_logger.py:41] error log
[2021-11-09 22:53:41.231][WRN][test_logger.py:42] warning log
[2021-11-09 22:53:41.233][CRC][test_logger.py:43] critical log
```

![sample_output](https://github.com/transpine/simple_py_logger/blob/main/sample_output.png?raw=true)

## How to use

```
from devfacPyLogger import log

log.info('info log')
log.debug('debug log')
log.error('error log')
log.warning('warning log')
log.critical('critical log')
```

## features
- At jupyter notebook there will be NO filename and line number(0.1)
    ```
    [2021-11-09 23:01:34.591][WRN] warning log
    ```
devfacPyLogger 0.2.1
Simple, Colored, File and Line number printable logger
License: MIT

# devfacPyLog
Simple, Colored, File and Line number printable python logger

I wanted to log like this

1. colored 
2. file name
3. line number
4. time
5. print type of logs by different func name

```
[2021-11-09 22:53:41.227][INF][test_logger.py:39] info log
[2021-11-09 22:53:41.229][DBG][test_logger.py:40] debug log
[2021-11-09 22:53:41.230][ERR][test_logger.py:41] error log
[2021-11-09 22:53:41.231][WRN][test_logger.py:42] warning log
[2021-11-09 22:53:41.233][CRC][test_logger.py:43] critical log
```

![sample_output](https://github.com/transpine/simple_py_logger/blob/main/sample_output.png?raw=true)

## How to use

```
from devfacPyLogger import log

log.info('info log')
log.debug('debug log')
log.error('error log')
log.warning('warning log')
log.critical('critical log')
```

## features
- At jupyter notebook there will be NO filename and line number(0.1)
    ```
    [2021-11-09 23:01:34.591][WRN] warning log
    ```
ndd-tools 1.2.6
My Collection of Tools
License: MIT
Requires Python: <4,>=3.0.*

# LoggerMixin
## usage
```
from ndd_tools import LoggerConfig, LoggerMixin
class A(LoggerMixin):
    def __init__(self, logger_config: LoggerConfig, *args, **kwargs):
        self.set_logger_up(logger_config)

        # to enable debug mode: log message send to console
        self.set_logger_debug_mode(True)

        # to disable debug mode:
        self.set_logger_debug_mode(False)

        # to change log level, change in config or method
        self.set_logger_level(loggingLevel)

        # to add file handler
        self.add_logger_file_handler(file_path: str, file_name: str, [formatter])

        # get current logger config
        self.get_logger_config()

        # incase you want create new logger
        # recreate new logger_config then use
        self.set_logger_up(new_logger_config)



    def run(self):
        self.debug('this is debug log message')
        self.info('this is info log message')
        self.warn('this is warn log message')
        self.error('this is error log message')
        self.critical('this is critical log message')

```
## example

# ApiClient
## usage
```
json_config_file_path = "/path/to/file/json"  
client = ApiClient(json_config_file_path)  
data = client.make_request('example1', header_dict, body_dict)  
```

# json format example
```yaml
{  
  "name": "api endpoints",  
  "description": "hello",  
  "config": {  
    "example1": {  
      "method": "GET",  
      "url": "https://gorest.co.in/public/v1/users",  
      "header": {  
        "Content-Type": "application/json"  
      },  
      "parameters": {  
        "hello": "world"  
      },  
      "save_response": false  
    }  
  }  
}
devfacPyLog 0.3
Simple, Colored, File and Line number printable logger
License: MIT

# devfacPyLog
Simple, Colored, File and Line number printable python logger

I wanted to log like this

1. colored 
2. file name
3. line number
4. time
5. print type of logs by different func name

```
[2021-11-09 22:53:41.227][INF][test_logger.py:39] info log
[2021-11-09 22:53:41.229][DBG][test_logger.py:40] debug log
[2021-11-09 22:53:41.230][ERR][test_logger.py:41] error log
[2021-11-09 22:53:41.231][WRN][test_logger.py:42] warning log
[2021-11-09 22:53:41.233][CRC][test_logger.py:43] critical log
```

![sample_output](https://github.com/transpine/simple_py_logger/blob/main/sample_output.png?raw=true)

## How to use

```
from devfacPyLog import log

log.info('info log')
log.debug('debug log')
log.error('error log')
log.warning('warning log')
log.critical('critical log')
```

## features
- 0.2
  - At jupyter notebook there will be NO filename and line number
    ```
    [2021-11-09 23:01:34.591][WRN] warning log
    ```
simple-py-logger 0.2
Simple, Colored, File and Line number printable logger
License: MIT

# Simple_py_logger
Simple, Colored, File and Line number printable python logger

I wanted to log like this

1. colored 
2. file name
3. line number
4. time
5. print type of logs by different func name

```
[2021-11-09 22:53:41.227][INF][test_logger.py:39] info log
[2021-11-09 22:53:41.229][DBG][test_logger.py:40] debug log
[2021-11-09 22:53:41.230][ERR][test_logger.py:41] error log
[2021-11-09 22:53:41.231][WRN][test_logger.py:42] warning log
[2021-11-09 22:53:41.233][CRC][test_logger.py:43] critical log
```

![sample_output](https://github.com/transpine/simple_py_logger/blob/main/sample_output.png?raw=true)

## How to use

```
from simple_py_logger import log

log.info('info log')
log.debug('debug log')
log.error('error log')
log.warning('warning log')
log.critical('critical log')
```

## features
- 0.2
  - At jupyter notebook there will be NO filename and line number
    ```
    [2021-11-09 23:01:34.591][WRN] warning log
    ```