summaryrefslogtreecommitdiffstats
path: root/toolkit/content/aboutLogging.html
blob: 95b351305247142bc4dd10f89187cc07aba6435e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta
      http-equiv="Content-Security-Policy"
      content="default-src chrome:; object-src 'none'"
    />
    <meta name="color-scheme" content="light dark" />
    <title data-l10n-id="about-logging-title"></title>
    <link rel="stylesheet" href="chrome://global/skin/aboutLogging.css" />
    <script src="chrome://global/content/aboutLogging.js"></script>
    <link rel="localization" href="toolkit/about/aboutLogging.ftl" />
    <link rel="localization" href="toolkit/branding/brandings.ftl" />
  </head>

  <body id="body">
    <main class="main-content">
      <h1 id="title" data-l10n-id="about-logging-page-title"></h1>
      <section>
        <div hidden id="error" class="page-subsection info-box">
          <div class="info-box-label" data-l10n-id="about-logging-error"></div>
          <div id="error-description"></div>
          <div data-l10n-id="about-logging-configuration-url-ignored"></div>
        </div>
        <div
          hidden
          id="some-elements-unavailable"
          class="page-subsection info-box"
        >
          <div class="info-box-label" data-l10n-id="about-logging-info"></div>
          <div data-l10n-id="about-logging-some-elements-disabled"></div>
        </div>
      </section>
      <div class="button-row">
        <button
          id="toggle-logging-button"
          data-l10n-id="about-logging-start-logging"
        ></button>
      </div>
      <section id="log-module-selection">
        <h2 data-l10n-id="about-logging-log-modules-selection"></h2>
        <div class="page-subsection">
          <label
            for="current-log-modules"
            data-l10n-id="about-logging-currently-enabled-log-modules"
          ></label>
          <div id="current-log-modules"></div>
          <div
            id="no-log-modules"
            data-l10n-id="about-logging-no-log-modules"
          ></div>
        </div>
        <form id="log-modules-form" class="page-subsection">
          <label
            for="log-modules"
            data-l10n-id="about-logging-new-log-modules"
          ></label>
          <input type="text" name="log-modules" id="log-modules" value="" />
          <div class="button-row">
            <button
              type="submit"
              id="set-log-modules-button"
              data-l10n-id="about-logging-set-log-modules"
            ></button>
          </div>
        </form>
        <div id="preset-selector-section" class="page-subsection">
          <label
            for="logging-preset-dropdown"
            data-l10n-id="about-logging-logging-preset-selector-text"
          ></label>
          <select
            name="logging-preset-dropdown"
            id="logging-preset-dropdown"
          ></select>
          <div id="logging-preset-description"></div>
        </div>
      </section>
      <section id="logging-output">
        <div>
          <span
            hidden
            id="buttons-disabled"
            data-l10n-id="about-logging-buttons-disabled"
          ></span>
        </div>
        <h2 data-l10n-id="about-logging-logging-output-selection"></h2>
        <div id="logging-output-profiler" class="form-entry">
          <input
            type="radio"
            id="radio-logging-profiler"
            name="logging-output"
            value="profiler"
            checked
          />
          <label
            for="radio-logging-profiler"
            data-l10n-id="about-logging-logging-to-profiler"
          ></label>
        </div>
        <div id="profiler-configuration" class="form-entry">
          <input type="checkbox" id="with-profiler-stacks-checkbox" /><label
            for="with-profiler-stacks-checkbox"
            data-l10n-id="about-logging-with-profiler-stacks-checkbox"
          ></label>
        </div>
        <div id="logging-output-file" class="form-entry">
          <input
            type="radio"
            id="radio-logging-file"
            name="logging-output"
            value="file"
          />
          <label
            for="radio-logging-file"
            data-l10n-id="about-logging-logging-to-file"
          ></label>
          <div>
            <span
              hidden
              id="buttons-disabled"
              data-l10n-id="about-logging-buttons-disabled"
            ></span>
          </div>
        </div>
        <form id="log-file-configuration" class="page-subsection">
          <div>
            <span data-l10n-id="about-logging-current-log-file"></span>
            <span id="current-log-file"></span>
            <span
              id="no-log-file"
              data-l10n-id="about-logging-no-log-file"
            ></span>
          </div>
          <div>
            <label
              for="log-file"
              data-l10n-id="about-logging-new-log-file"
            ></label>
            <input type="text" name="log-file" id="log-file" />
            <div class="button-row">
              <button
                type="button"
                id="open-log-file-button"
                data-l10n-id="about-logging-open-log-file-dir"
              ></button>
              <button
                type="submit"
                id="set-log-file-button"
                data-l10n-id="about-logging-set-log-file"
              ></button>
            </div>
          </div>
        </form>
        <div class="page-subsection">
          <p id="log-tutorial" data-l10n-id="about-logging-log-tutorial">
            <a
              data-l10n-name="logging"
              href="https://firefox-source-docs.mozilla.org/networking/http/logging.html"
            ></a>
          </p>
        </div>
      </section>
    </main>
  </body>
</html>