semvec/pypi-packages huggingface dataset:
PictLogger 0.1.3
Simple logger writen in c++
Requires Python: >=3.7

## PictLogger

A simple logger writen in c++
For now, works only on Linux, X86_64
I`m trying to compile it for Windows, maybe it will be 

You can see all sources at https://github.com/ilyadudelzak/pictlogger

## How to use

To save files you need to create the "logs" folder near your main program

## Simple example:
```python
import pictlogger

pictlogger.start(True)

pictlogger.log("Testing", "Hello, World!")

pictlogger.close(0)
```
It prints and saves to the file:
```
Fri Oct 13 15:34:48 2023 Pictlogger: Started
Fri Oct 13 15:34:48 2023 PictLogger: Version: 0.0.1
Fri Oct 13 15:34:48 2023 Python: PictLogger Imported Successfully
Fri Oct 13 15:34:48 2023 Testing: Hello, World!
Fri Oct 13 15:34:48 2023 PictLogger: Exit with exit code: 0 (Success)
```

## Example with exception

```python
import pictlogger

pictlogger.start(True)

pictlogger.log("Testing", "Hello, World!")

try:
    n = int(input())
    pictlogger.log("Testing", "User entered number " + str(n));
    pictlogger.close(0)
    
except Exception as e:
    pictlogger.log("Exception", str(e))
    pictlogger.close(1)
```
it will print
```
Fri Oct 13 16:10:19 2023 Pictlogger: Started PictLogger
Fri Oct 13 16:10:19 2023 PictLogger: Version: 0.0.1
Fri Oct 13 16:10:19 2023 Python: PictLogger Imported Successfully
Fri Oct 13 16:10:19 2023 Testing: Hello, World!
1234
Fri Oct 13 16:10:21 2023 Testing: User entered number 1234
Fri Oct 13 16:10:21 2023 PictLogger: Exit with exit code: 0 (Success)
```
Or
```
Fri Oct 13 16:10:37 2023 Pictlogger: Started PictLogger
Fri Oct 13 16:10:37 2023 PictLogger: Version: 0.0.1
Fri Oct 13 16:10:37 2023 Python: PictLogger Imported Successfully
Fri Oct 13 16:10:37 2023 Testing: Hello, World!
kitten
Fri Oct 13 16:10:41 2023 Exception: invalid literal for int() with base 10: 'kitten'
Fri Oct 13 16:10:41 2023 PictLogger: Exit with exit code: 1 (Error)

```

## Documentation

## start(print)
Starts library, opens the file.

print is True or False

If it is true, library will print all logs to the screen.

If if is false, it will not print logs, but save all to the file, like before.

## log(sender, text)
It will save log string to file and print it, if you setted print to true.

sender is string, thal prints before text.
text is string, that prints after text, it contains main sense of the log.

## close(code)
Closes output and saves files
Call at end of program

code is number, that is an exit code of your program.
Library will print it after exit message
chromiumfile 0.2
chromium 浏览器的文件镜像
Keywords: chromiumfile,chromium,chrome

# 项目描述

chromium 浏览器的文件镜像。

注：此 pypi 包非 chromium 发行，但内含从 chromium 官网下载的浏览器文件。

此包的版本号将与所包含的 chromium 浏览器的版本号保持一致。例如：存放 '100.2.3' 版本的 chromium 的 chromiumfile 包的版本号也将为 '100.2.3' 。

# 作者信息

昵称：lcctoor.com

域名：lcctoor.com

邮箱：lcctoor@outlook.com

[主页](https://lcctoor.github.io/arts/) \| [微信](https://lcctoor.github.io/arts/arts/static/static-files/WeChatQRC.jpg) \| [Python交流群](https://lcctoor.github.io/arts/arts/static/static-files/PythonWeChatGroupQRC.jpg) \| [捐赠](https://lcctoor.github.io/arts/arts/static/static-files/DonationQRC-1rmb.jpg)

# Bug提交、功能提议

您可以通过 [Github-Issues](https://github.com/lcctoor/arts/issues)、[微信](https://lcctoor.github.io/arts/arts/static/static-files/WeChatQRC.jpg) 与我联系。

# 安装

```
pip install chromiumfile
```

# 教程

```python
from chromiumfile import (
    chromium_dir,  # chromium 文件夹路径
    bootstrap_file  # 浏览器启动文件路径, 即 chrome.exe 的路径
)
```