日志解析
通过配置关键字,解析用户输入的文本是否匹配关键字跳转到展示页面展示匹配结果.
目录结构
|- autoParseLog
|- settings
- keywords.json
|- static
|- css
- index.css
- init.css
|- js
|- templates
- index.html
- parseResult.html
- main.py
关键字配置文件 keywords.json
[
{
"keyword": "endfor",
"reason": "这是错误1"
}
]
清除基础样式 init.css
/*公共样式--开始*/
html, body, div, ul, li, h1, h2, h3, h4, h5, h6, p, dl, dt, dd, ol, form, input, textarea, th, td, select {
margin: 0;
padding: 0;
}
* {
box-sizing: border-box;
}
html, body {
min-height: 100%;
}
body {
font-family: "Microsoft YaHei";
font-size: 14px;
color: #333;
}
h1, h2, h3, h4, h5, h6 {
font-weight: normal;
}
ul, ol {
list-style: none;
}
img {
border: none;
vertical-align: middle;
}
a {
text-decoration: none;
color: #232323;
}
table {
border-collapse: collapse;
table-layout: fixed;
}
input, textarea {
outline: none;
border: none;
}
textarea {
resize: none;
overflow: auto;
}
.clearfix {
zoom: 1;
}
.clearfix:after {