Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | More improvements to the setup-logmenu page. |
|---|---|
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
767509f6178b88506718aa582113833f |
| User & Date: | drh 2025-02-14 13:33:00.406 |
Context
|
2025-02-14
| ||
| 16:37 | Fix typo (missing space) in the new log-menu page. check-in: bd0d442259 user: drh tags: trunk | |
| 13:33 | More improvements to the setup-logmenu page. check-in: 767509f617 user: drh tags: trunk | |
| 12:53 | Improvements to the log menu. check-in: b0feaa6955 user: drh tags: trunk | |
Changes
Changes to src/setup.c.
| ︙ | ︙ | |||
199 200 201 202 203 204 205 |
login_check_credentials();
if( !g.perm.Admin ){
login_needed(0);
return;
}
style_header("Log Menu");
@ <table border="0" cellspacing="3">
| > > > > > > > > > > | | | | > | < | < > | | > > > | > > | > > | > | | | | < < < | 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 |
login_check_credentials();
if( !g.perm.Admin ){
login_needed(0);
return;
}
style_header("Log Menu");
@ <table border="0" cellspacing="3">
if( db_get_boolean("admin-log",0)==0 ){
blob_appendf(&desc,
"The admin log records configuration changes to the repository.\n"
"<b>Disabled</b>: Turn on the "
" <a href='%R/setup_settings'>admin-log setting</a> to enable."
);
setup_menu_entry("Admin Log", 0, blob_str(&desc));
blob_reset(&desc);
}else{
setup_menu_entry("Admin Log", "admin_log",
"The admin log records configuration changes to the repository\n"
"in the \"admin_log\" table.\n"
);
}
setup_menu_entry("Artifact Log", "rcvfromlist",
"The artifact log records when new content is added in the\n"
"\"rcvfrom\" table.\n"
);
if( db_get_boolean("access-log",0) ){
setup_menu_entry("User Log", "user_log",
"Login attempts recorded in the \"accesslog\" table."
);
}else{
blob_appendf(&desc,
"Login attempts recorded in the \"accesslog\" table.\n"
"<b>Disabled</b>: Turn on the "
"<a href='%R/setup_settings'>access-log setting</a> to enable."
);
setup_menu_entry("User Log", 0, blob_str(&desc));
blob_reset(&desc);
}
blob_appendf(&desc,
"A separate text file to which warning and error\n"
"messages are appended. A single error log can and often is shared\n"
"across multiple repositories.\n"
);
if( g.zErrlog==0 || fossil_strcmp(g.zErrlog,"-")==0 ){
blob_appendf(&desc,"<b>Disabled</b>: "
"To enable the error log ");
if( fossil_strcmp(g.zCmdName, "cgi")==0 ){
blob_appendf(&desc,
"make an entry like \"errorlog: <i>FILENAME</i>\""
" in the CGI script at %h",
P("SCRIPT_FILENAME")
);
}else{
blob_appendf(&desc,
" add the \"--errorlog <i>FILENAME</i>\" option to the"
"\"%h %h\" command that launched this server.",
g.argv[0], g.zCmdName
);
}
bErrLog = 0;
}else{
blob_appendf(&desc,"In this repository, the error log is the file "
"named \"%s\".", g.zErrlog);
bErrLog = 1;
}
setup_menu_entry("Error Log", bErrLog ? "errorlog" : 0, blob_str(&desc));
blob_reset(&desc);
@ <tr><td><td><td>
@ ——
@ <i>The remaining links are subsets of the Error Log</i>
@ ——
@ </td>
setup_menu_entry("Panic Log", bErrLog ? "paniclog" : 0,
"Only the most important messages in the Error Log:\n"
"assertion faults, segmentation faults, and similar malfunctions.\n"
);
setup_menu_entry("Hack Log", bErrLog ? "hacklog" : 0,
"All code-418 hack attempts in the Error Log"
);
setup_menu_entry("Non-Hack Log", bErrLog ? "hacklog?not" : 0,
"All log messages that are not code-418 hack attempts"
);
@ </table>
style_finish_page();
}
|
| ︙ | ︙ |