Metadata-Version: 2.1
Name: lo2
Version: 0.5.4
Summary: lo2 - Log Oracle, an Oracle test language for log description and analysis
Author: DUHP BSP Team
Author-email: zhangte01@baidu.com
Description-Content-Type: text/markdown
Requires-Dist: Jinja2 ==3.1.2
Requires-Dist: ply >=3
Requires-Dist: chardet >=2.0
Requires-Dist: matplotlib >=3.5

## lo2 (lo2-lang) - Log Oracle, an Oracle test language for log description and analysis.

lo2 is a domain-specific programming language (DSL) designed to describe log behavior, originating from Oracle testing. By describing log behavior, it analyzes logs to discover actions that violate expected (Oracle) rules.

1. Install
```sh
python -m pip install lo2
```

2. Quickly Example

```sh
python3 -m lo2 -s demo/demo.lo2  -l demo/demo_lo2.log -c
```

The `-s` parameter specifies a lo2 source code file, which describes the expected behavior of the log file. The `-l` parameter specifies `demo_lo2.log`, a log file being analyzed. This command will output whether `demo_lo2.log` has experienced unexpected abnormal behavior **(Contrary to Oracle)**

3. Tutorial

Regarding the syntax tutorial for the Lo2 language, we will organize and supplement it later.

4. Editor highlighting-syntax plugin

The lo2 language has its own syntax highlighting-syntax plugin, which is available in the [vscode](https://marketplace.visualstudio.com/items?itemName=alextee.lo2-highlighter), or seach for `lo2-highlighter` in the extension market.
