Commit 1796fdf7 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Manual.rst: update realtime log file QFQ code

parent 76ae7e5e
Pipeline #2319 failed with stages
in 1 minute and 52 seconds
......@@ -1115,19 +1115,22 @@ The following QFQ code could be used for that purpose (put it in a QFQ PageConte
# {{logfile:SU}}
#
# Show buttons to select log file.
10 {
sql = SELECT '{{logfile:SU:::sql.log}}' AS '_=logfile'
head = <p>
tail = </p>
20.sql = SELECT CONCAT('p:{{pageAlias:T}}&logfile=sql.log|t:sql.log|b:', IF('{{logfile:SU}}'='sql.log','primary','default')) AS _page, ' '
30.sql = SELECT CONCAT('p:{{pageAlias:T}}&logfile=qfq.log|t:qfq.log|b:', IF('{{logfile:SU}}'='qfq.log','primary','default')) AS _page, ' '
40.sql = SELECT CONCAT('p:{{pageAlias:T}}&logfile=mail.log|t:mail.log|b:', IF('{{logfile:SU}}'='mail.log','primary','default')) AS _page, ' '
20.sql = SELECT CONCAT('p:{{pageAlias:T}}&logfile=sql.log|t:sql.log|b:', IF('{{logfile:R}}'='sql.log','primary','')) AS _page, ' ',
CONCAT('p:{{pageAlias:T}}&logfile=qfq.log|t:qfq.log|b:', IF('{{logfile:R}}'='qfq.log','primary','')) AS _page, ' ',
CONCAT('p:{{pageAlias:T}}&logfile=mail.log|t:mail.log|b:', IF('{{logfile:R}}'='mail.log','primary','')) AS _page
}
# Show selected log file.
100.sql = SELECT 'file:fileadmin/protected/log/{{logfile:SU}}' AS _monitor
100.head = <pre id="monitor-1">Please wait</pre>
100 {
sql = SELECT 'file:fileadmin/protected/log/{{logfile:R}}' AS _monitor
head = <pre id="monitor-1">Please wait</pre>
}
.. _`form-submit-log-page`:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment