forked from snxraven/p2ns
Log updates
This commit is contained in:
@@ -314,6 +314,7 @@
|
||||
<select id="log-channel-select" onchange="onLogChannelChange()" class="theme-input rounded-lg px-3 py-2 text-sm min-w-[12rem]">
|
||||
<option value="core">Core</option>
|
||||
<option value="proxy">Internal Proxy</option>
|
||||
<option value="httpProxy">HTTP Proxy</option>
|
||||
<option value="dns">DNS</option>
|
||||
<option value="plugins">Plugins</option>
|
||||
<option value="holesail">Holesail</option>
|
||||
@@ -329,7 +330,7 @@
|
||||
autocomplete="off"
|
||||
spellcheck="false"
|
||||
placeholder="Filter lines… text or /regex/flags"
|
||||
class="w-full theme-input rounded-lg py-2 pl-9 pr-9 text-sm focus:outline-none focus:ring-2 focus:ring-primary"
|
||||
class="w-full theme-input log-filter-input rounded-lg py-2 pl-9 pr-9 text-sm"
|
||||
aria-label="Filter log lines"
|
||||
oninput="onLogFilterInput()"
|
||||
onkeydown="if (event.key === 'Escape') { clearLogFilter(); event.preventDefault(); }"
|
||||
|
||||
@@ -553,6 +553,18 @@ button[onclick*="openInfoModal"]:hover {
|
||||
color: var(--text-tertiary);
|
||||
}
|
||||
|
||||
/* Logs tab filter — no focus ring / glow */
|
||||
.log-filter-input:focus,
|
||||
.log-filter-input:focus-visible {
|
||||
outline: none;
|
||||
box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.03);
|
||||
border-color: var(--border-color);
|
||||
}
|
||||
|
||||
.log-filter-input::-webkit-search-cancel-button {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
.theme-table {
|
||||
background: var(--bg-glass);
|
||||
backdrop-filter: blur(30px) saturate(200%);
|
||||
|
||||
@@ -260,7 +260,7 @@ const infoContent = {
|
||||
sections: [
|
||||
{
|
||||
title: 'Log files',
|
||||
content: 'Choose a log from the dropdown: core.log (main process), proxy.log (Internal Proxy), dns.log (DNS resolver), plugins.log (plugin SDK), holesail.log (Holesail). Noisy proxy and DNS traffic no longer appears in core.'
|
||||
content: 'Choose a log from the dropdown: core.log (main process), proxy.log (Internal Proxy), http-proxy.log (HTTP redirect server), dns.log (DNS resolver), plugins.log (plugin SDK), holesail.log (Holesail). Noisy proxy, HTTP, and DNS traffic no longer appears in core.'
|
||||
},
|
||||
{
|
||||
title: 'On disk',
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
const LOG_CHANNEL_LABELS = {
|
||||
core: 'Core',
|
||||
proxy: 'Internal Proxy',
|
||||
httpProxy: 'HTTP Proxy',
|
||||
dns: 'DNS',
|
||||
plugins: 'Plugins',
|
||||
holesail: 'Holesail'
|
||||
|
||||
@@ -16,6 +16,7 @@ const LEVEL_NAMES = ['DEBUG', 'INFO', 'WARN', 'ERROR'];
|
||||
const LOG_CHANNELS = {
|
||||
core: { file: 'core.log', label: 'Core', console: true },
|
||||
proxy: { file: 'proxy.log', label: 'Internal Proxy', console: false },
|
||||
httpProxy: { file: 'http-proxy.log', label: 'HTTP Proxy', console: false },
|
||||
dns: { file: 'dns.log', label: 'DNS', console: false },
|
||||
plugins: { file: 'plugins.log', label: 'Plugins', console: false },
|
||||
holesail: { file: 'holesail.log', label: 'Holesail', console: false }
|
||||
@@ -40,6 +41,7 @@ function getLogDir() {
|
||||
function resolveChannel(prefix) {
|
||||
if (!prefix) return 'core';
|
||||
if (prefix === 'Internal Proxy') return 'proxy';
|
||||
if (prefix === 'HTTP Proxy') return 'httpProxy';
|
||||
if (prefix === 'DNS') return 'dns';
|
||||
if (prefix === 'Holesail' || prefix.startsWith('Holesail')) return 'holesail';
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user