Files
biliup/app/ui/plugins/developer.tsx
T
Monine Melolaris 2cfdf8db03 Fix:日志格式以及丢失问题 (#864)
* 录播管理页面卡片样式优化

修复:
直播间标题过长导致上方状态标识、下方按钮消失的问题;
部分浏览器页面宽度下,按钮溢出边框的问题。
调整:
将状态标识按钮调整为与旧版一致。

* Fix:日志格式以及丢失问题

修复因缺失 handlers 参数而导致日志格式丢失,以及无法获取DEBUG以外等级日志的问题。
原理:OnChange属性中调用api添加参数,若之前受到过此bug影响,可尝试切换至其他日志等级。保存后将自动修复。
2024-04-10 15:06:06 +00:00

75 lines
3.0 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"use client";
import React from "react";
import styles from "../../styles/dashboard.module.scss";
import { Form, Select, useFormApi } from "@douyinfe/semi-ui";
import { IconSetting } from "@douyinfe/semi-icons";
const Developer: React.FC = () => {
const formApi = useFormApi();
return (
<>
<div className={styles.frameDeveloper}>
<div className={styles.frameInside}>
<div className={styles.group}>
<div className={styles.buttonOnlyIconSecond} />
<div
className={styles.lineStory}
style={{
color: "var(--semi-color-bg-0)",
display: "flex",
}}
>
<IconSetting size="small" />
</div>
</div>
<p className={styles.meegoSharedWebWorkIt}>开发者选项</p>
</div>
<Form.Select
label=" 控制台日志输出等级(LOGGING.root.level)"
field="LOGGING.root.level"
placeholder={"INFO"}
style={{ width: "100%" }}
fieldStyle={{
alignSelf: "stretch",
padding: 0,
}}
onChange={() => {
formApi.setValue("LOGGING.root.handlers", ["console"]);
}}
>
<Select.Option value="DEBUG">DEBUG</Select.Option>
<Select.Option value="INFO">INFO</Select.Option>
<Select.Option value="WARNING">WARNING</Select.Option>
<Select.Option value="ERROR">ERROR</Select.Option>
<Select.Option value="CRITICAL">CRITICAL</Select.Option>
</Form.Select>
<Form.Select
label=" 文件日志输出等级(LOGGING.loggers.biliup.level)"
field="LOGGING.loggers.biliup.level"
placeholder={"INFO"}
style={{ width: "100%" }}
fieldStyle={{
alignSelf: "stretch",
padding: 0,
}}
onChange={() => {
formApi.setValue("LOGGING.loggers.biliup.handlers", [
"file",
]);
}}
>
<Select.Option value="DEBUG">DEBUG</Select.Option>
<Select.Option value="INFO">INFO</Select.Option>
<Select.Option value="WARNING">WARNING</Select.Option>
<Select.Option value="ERROR">ERROR</Select.Option>
<Select.Option value="CRITICAL">CRITICAL</Select.Option>
</Form.Select>
</div>
</>
);
};
export default Developer;