mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-23 18:45:40 +08:00
document default log format
This commit is contained in:
parent
5e2b2a399e
commit
090baeab33
@ -290,7 +290,7 @@ Also, you must specify logformat to build SQL query, to insert recod into
|
|||||||
log, see <A HREF="#LOGFORMAT">How to setup logging format</A>
|
log, see <A HREF="#LOGFORMAT">How to setup logging format</A>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Rotation and archiving may be set up with log, rotate ¨ archiver commands
|
Rotation and archiving may be set up with log, rotate ¨ archiver commands
|
||||||
<pre>
|
<pre>
|
||||||
log filename LOGTYPE
|
log filename LOGTYPE
|
||||||
</pre>
|
</pre>
|
||||||
@ -366,12 +366,19 @@ logformat "L%t.%. %N.%p %E %U %C:%c %R:%r %O %I %h %T"
|
|||||||
<br>(no line breaks)
|
<br>(no line breaks)
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
If ODBC used, logformat should specify SQL command,
|
If ODBC is used, logformat should specify SQL command,
|
||||||
to insert record into log, for example
|
to insert record into log, for example
|
||||||
<p><pre>
|
<p><pre>
|
||||||
logformat "-\'+_GINSERT INTO proxystat VALUES (%t, '%c', '%U', %I)"</pre>
|
logformat "-\'+_GINSERT INTO proxystat VALUES (%t, '%c', '%U', %I)"</pre>
|
||||||
<br>(no line breaks)
|
<br>(no line breaks)
|
||||||
<br>-\'+_ instructs to replace characters \ and ' with _
|
<br>-\'+_ instructs to replace characters \ and ' with _
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
If no log format is set, it will fall back to the default log format:
|
||||||
|
<pre>
|
||||||
|
logformat "G%y%m%d%H%M%S.%. %p %E %U %C:%c %R:%r %O %I %h %T"
|
||||||
|
</pre>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<li><A NAME="LOGANALIZERS">How to use log analizers with 3proxy</A>
|
<li><A NAME="LOGANALIZERS">How to use log analizers with 3proxy</A>
|
||||||
<p>
|
<p>
|
||||||
@ -474,7 +481,7 @@ proxy -p8080 -i192.168.2.1
|
|||||||
</p>
|
</p>
|
||||||
<li><a name="ISFTP"><i>How to setup FTP proxy</i></a></li>
|
<li><a name="ISFTP"><i>How to setup FTP proxy</i></a></li>
|
||||||
<p>
|
<p>
|
||||||
There is FTP over HTTP (what is called FTP proxy in browsers) and FTP over FTP ¯à®ªá¨
|
There is FTP over HTTP (what is called FTP proxy in browsers) and FTP over FTP ¯à®ªá¨
|
||||||
(what is called FTP proxy in file managers and FTP clients). For browsers, there is no need to start additional
|
(what is called FTP proxy in file managers and FTP clients). For browsers, there is no need to start additional
|
||||||
proxy service, 'proxy' supports FTP over HTTP, configure 'proxy' port as an FTP proxy. For ftp clients and file
|
proxy service, 'proxy' supports FTP over HTTP, configure 'proxy' port as an FTP proxy. For ftp clients and file
|
||||||
managers use ftppr. FTP proxy supports both active and passive mode with client, but always use passive mode with FTP servers.
|
managers use ftppr. FTP proxy supports both active and passive mode with client, but always use passive mode with FTP servers.
|
||||||
@ -704,7 +711,7 @@ no need to run these services expicitly. Local redirections are usefull if
|
|||||||
you want to see and control via ACLs protocol specific parameters, e.g.
|
you want to see and control via ACLs protocol specific parameters, e.g.
|
||||||
filenames requests thorugh FTP while clients are using SOCKS.
|
filenames requests thorugh FTP while clients are using SOCKS.
|
||||||
</p>
|
</p>
|
||||||
<li><a name="SOCKSREDIR">Š ª ã¯à ¢«ïâì «®ª «ì묨 ¯¥à¥ ¯à ¢«¥¨ï¬¨</a>
|
<li><a name="SOCKSREDIR"> ª ã¯à ¢«ïâì «®ª «ì묨 ¯¥à¥ ¯à ¢«¥¨ï¬¨</a>
|
||||||
<p>
|
<p>
|
||||||
<p><i>Q: What is it for?</i></p>
|
<p><i>Q: What is it for?</i></p>
|
||||||
A: To have control based on request and to have URLs and another protocol specific parameters to be logged.
|
A: To have control based on request and to have URLs and another protocol specific parameters to be logged.
|
||||||
|
Loading…
Reference in New Issue
Block a user