tips:logging
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tips:logging [2011-04-05 08:51] – Link to plugin home page didn't work anymore 213.61.134.52 | tips:logging [2017-09-25 13:43] (current) – old revision restored (2016-02-09 08:16) bactram | ||
---|---|---|---|
Line 7: | Line 7: | ||
:!: [note by J.-F. Lalande] Using the information and code provided on this page, I created the [[plugin: | :!: [note by J.-F. Lalande] Using the information and code provided on this page, I created the [[plugin: | ||
===== Log File Format ===== | ===== Log File Format ===== | ||
- | Both solutions will use the NCSA combined or NCSA extended log file format. This log file format is very popular and often used be web servers like apache. Many report generators can read this format and create nice reports from it. Because of this fantastic support by external programs Dokuwiki doesn' | + | Both solutions will use the NCSA combined or NCSA extended log file format. This log file format is very popular and often used on web servers like apache. Many report generators can read this format and create nice reports from it. Because of this fantastic support by external programs Dokuwiki doesn' |
Report generators that could be used are (only some examples, list far from complete): | Report generators that could be used are (only some examples, list far from complete): | ||
Line 39: | Line 39: | ||
<code php> | <code php> | ||
function init_paths(){ | function init_paths(){ | ||
- | | + | |
- | | + | |
- | | + | ' |
- | | + | ' |
- | | + | ' |
- | | + | ' |
- | | + | ' |
- | | + | |
- | | + | 'tmpdir' |
+ | ' | ||
+ | |||
+ | foreach($paths as $c => $p){ | ||
+ | if(empty($conf[$c])) | ||
+ | $conf[$c] | ||
+ | if($c != ' | ||
+ | You should check your config and permission settings. | ||
+ | Or maybe you want to <a href=\" | ||
+ | installer</ | ||
+ | } | ||
- | foreach($paths as $c => $p){ | + | [...] |
- | if(!$conf[$c]) | + | |
- | $conf[$c] = init_path($conf[$c]); | + | |
- | if($c != ' | + | |
- | die(" | + | |
- | } | + | |
- | } | + | |
</ | </ | ||
Line 64: | Line 68: | ||
<code php> | <code php> | ||
- | | + | if(!defined(' |
- | require_once(DOKU_INC.' | + | require_once(DOKU_INC.' |
- | require_once(DOKU_CONF.' | + | |
[...] | [...] | ||
Line 83: | Line 86: | ||
</ | </ | ||
- | 4. Update your favorite template to call // | + | 4. Update your favorite template to call // |
- | 5. To be able to log media files too we need to modify /// | + | <code php> |
+ | |||
+ | [...] | ||
+ | |||
+ | </ | ||
+ | <div class=" | ||
+ | <div class=" | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | 5. To be able to log media files too we need to modify /// | ||
<code php> | <code php> | ||
Line 158: | Line 173: | ||
Source code of // | Source code of // | ||
- | <code php> | + | <code php logfile.php |
+ | > | ||
<?php | <?php | ||
/** | /** | ||
Line 305: | Line 321: | ||
If you choose to use AWStats to process your logs, then here are some tips on configuration options that give you some more control over how DokuWiki accesses are shown. | If you choose to use AWStats to process your logs, then here are some tips on configuration options that give you some more control over how DokuWiki accesses are shown. | ||
- | * By defualt, AWStats does not keep track of the parameters after a "?" | + | * By default, AWStats does not keep track of the parameters after a "?" |
< | < | ||
URLWithQuery=1 # Set this to " | URLWithQuery=1 # Set this to " |
tips/logging.1301986264.txt.gz · Last modified: 2011-04-05 08:51 by 213.61.134.52