Redirected from Deki/FAQ/Configuration/How do I...Manage log files?
Was this page helpful?

Manage API log files

  • You do not have permissions to view this page - please try logging in.

Dekihost uses log4net to generate log files. 

NOTE: In the examples below, $WIKI_DIR is the location to your Deki Wiki installations (for example: /var/www/dekiwiki)

By default dekiwiki creates the following log file:
/var/log/dekiwiki/deki-api.log

How do I change the location of /var/log/dekiwiki/deki-api.log?

To change the location of the deki-api.log edit:

/etc/dekiwiki/mindtouch.host.conf

and change the following variables:

# directory to store dekiwiki log files
LOGDIR="/var/log/dekiwiki"

# location of the dekiwiki API log file 
LOGFILE="$LOGDIR/deki-api.log"

Make sure the dekiwiki user (www-data or dekiwiki depending on the type of your install) has write access:

MindTouch VM

chown www-data /var/log/dekiwiki

Deki RPM/.deb package:

chown dekiwiki /var/log/dekiwiki

Finally, restart dekihost for the changes to take affect:

/etc/init.d/dekihost restart

How do I rotate my dekiwiki log using logrotate?

In a text editor, create the following file:  /etc/logrotate.d/dekiwki

# rotate the dekiwiki api log daily
/var/log/dekiwiki/deki-api.log {
        daily
        rotate 7
        missingok
        copytruncate
        compress
}

To test the log rotation you can do:

logrotate -f /etc/logrotate.d/dekiwiki 
Was this page helpful?
Tag page
Viewing 4 of 4 comments: view all
Does this apply for Windows? Deki does not create a deki-api.log file by default. But I would love to create it. I've created mindtouch.host.conf in my deki root and edited and restarted my server. But no api log.
Posted 08:22, 8 Apr 2009
I have the same question as bohappa. How can we get the deki-api.log on Windows?
Posted 10:25, 8 Jul 2010
@jlpp you can see the information about logs here: http://developer.mindtouch.com/en/kb/Accessing_MindTouch_Logs_(Windows)
Posted 10:37, 8 Jul 2010
@coreyg Thanks for the suggestion. I couldn't find the path's referenced on 'Accessing MindTouch Logs (Windows)'. I have Mindtouch under c:\deki so substituting that for c:\program files\MindTouch\MindTouch I could find data/logs but no dream.log within. I also didn't have an api directory. web.config was only under the src directory and modifying that copy to switch from INFO to DEBUG and restarting didn't seem to have any affect. Search the entire c:\deki dir for *.log yielded on file DekiScript.atg.log, which doesn't pertain to deki API logging. Do you think I'm running a different version than that which is documented at the page? What else could account for the differences? Thanks again.
Posted 12:19, 9 Jul 2010
Viewing 4 of 4 comments: view all
You must login to post a comment.

Copyright © 2011 MindTouch, Inc. Powered by