feat: rename logForwardingLevel to applicationLogLevel, add agentLogLevel
Align with cameleer3-common rename: logForwardingLevel → applicationLogLevel (root logger) and new agentLogLevel (com.cameleer3 logger). Both fields are on ApplicationConfig, pushed via config-update. UI shows "App Log Level" and "Agent Log Level" on AppConfig slide-in, AgentHealth config bar, and AppConfigDetailPage. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -91,7 +91,8 @@ export default function AppConfigDetailPage() {
|
||||
useEffect(() => {
|
||||
if (config) {
|
||||
setForm({
|
||||
logForwardingLevel: config.logForwardingLevel ?? 'INFO',
|
||||
applicationLogLevel: config.applicationLogLevel ?? 'INFO',
|
||||
agentLogLevel: config.agentLogLevel ?? 'INFO',
|
||||
engineLevel: config.engineLevel ?? 'REGULAR',
|
||||
payloadCaptureMode: config.payloadCaptureMode ?? 'NONE',
|
||||
metricsEnabled: config.metricsEnabled,
|
||||
@@ -106,7 +107,8 @@ export default function AppConfigDetailPage() {
|
||||
function startEditing() {
|
||||
if (!config) return;
|
||||
setForm({
|
||||
logForwardingLevel: config.logForwardingLevel ?? 'INFO',
|
||||
applicationLogLevel: config.applicationLogLevel ?? 'INFO',
|
||||
agentLogLevel: config.agentLogLevel ?? 'INFO',
|
||||
engineLevel: config.engineLevel ?? 'REGULAR',
|
||||
payloadCaptureMode: config.payloadCaptureMode ?? 'NONE',
|
||||
metricsEnabled: config.metricsEnabled,
|
||||
@@ -327,10 +329,10 @@ export default function AppConfigDetailPage() {
|
||||
<SectionHeader>Settings</SectionHeader>
|
||||
<div className={styles.settingsGrid}>
|
||||
<div className={styles.field}>
|
||||
<label className={styles.label}>Log Forwarding Level</label>
|
||||
<label className={styles.label}>App Log Level</label>
|
||||
{editing ? (
|
||||
<select className={styles.select} value={String(form.logForwardingLevel)}
|
||||
onChange={(e) => updateField('logForwardingLevel', e.target.value)}>
|
||||
<select className={styles.select} value={String(form.applicationLogLevel)}
|
||||
onChange={(e) => updateField('applicationLogLevel', e.target.value)}>
|
||||
<option value="ERROR">ERROR</option>
|
||||
<option value="WARN">WARN</option>
|
||||
<option value="INFO">INFO</option>
|
||||
@@ -338,7 +340,22 @@ export default function AppConfigDetailPage() {
|
||||
<option value="TRACE">TRACE</option>
|
||||
</select>
|
||||
) : (
|
||||
<Badge label={String(form.logForwardingLevel)} color={logLevelColor(form.logForwardingLevel as string)} variant="filled" />
|
||||
<Badge label={String(form.applicationLogLevel)} color={logLevelColor(form.applicationLogLevel as string)} variant="filled" />
|
||||
)}
|
||||
</div>
|
||||
<div className={styles.field}>
|
||||
<label className={styles.label}>Agent Log Level</label>
|
||||
{editing ? (
|
||||
<select className={styles.select} value={String(form.agentLogLevel ?? 'INFO')}
|
||||
onChange={(e) => updateField('agentLogLevel', e.target.value)}>
|
||||
<option value="ERROR">ERROR</option>
|
||||
<option value="WARN">WARN</option>
|
||||
<option value="INFO">INFO</option>
|
||||
<option value="DEBUG">DEBUG</option>
|
||||
<option value="TRACE">TRACE</option>
|
||||
</select>
|
||||
) : (
|
||||
<Badge label={String(form.agentLogLevel ?? 'INFO')} color={logLevelColor(form.agentLogLevel as string)} variant="filled" />
|
||||
)}
|
||||
</div>
|
||||
<div className={styles.field}>
|
||||
|
||||
Reference in New Issue
Block a user