Kayako Logo
Developers & Code Interested in customizing your Kayako products? Discuss modifications and develop your own mods with the community.

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  (#1) Old
borzwazie Offline
New Member
 
Posts: 2
Join Date: Apr 2008

SupportSuite
Owned License
why doesn't apache_note work with Kayako? - 08-05-2008, 10:42 AM

So I'd like to do a little custom logging via apache_note, but this does not appear to work with Kayako code at all.

If I create some random php file like this:

<?php

apache_note('FOOBAR','LOGME');

?>

and I then put the following in my LogFormat line:

%{FOOBAR}n


I can expect that every time someone hits my random.php page, that the string "LOGME" will get written to my apache log file. This works great, right? Until I put stuff like this in my Kayako index.php file, then it just doesn't work at all.

I'd like to log various Kayako variables from time to time - am I doing something wrong here?
   
Reply With Quote
  (#2) Old
borzwazie Offline
New Member
 
Posts: 2
Join Date: Apr 2008

SupportSuite
Owned License
09-05-2008, 12:56 PM

well, apache_note does work, it just doesn't work the way I thought it did.

One thing I wanted to log was the username and filename every time a logged-in user downloaded a file.

I edited client_downloads.php, and added three lines:

PHP Code:

                ini_set
'zlib.output_compression','Off' );
        }

        
// MY ADDED LINES: Log the username and file to Apache
        
apache_note('accountID',$_SWIFT["user"]["primaryemail"]);
        
apache_note('downloadFileName',$_downloaditem["filename"]);

        
// Get the file extension 
Then, in my Apache httpd.conf, I added the following custom LogFormat line:

Code:
LogFormat "%h %l %{accountID}n %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{downloadFileName}n\"" myCustomLogFormat
That was pretty much it.
   
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Feedback about Kayako Xaman Comments, Questions & Feedback 10 03-04-2008 06:04 AM
Kayako Dont work on IE8 chrisduk SupportSuite, eSupport and LiveResponse 10 06-03-2008 03:09 PM
HOWTO: Making Spell Check work in Kayako SupportSuite sboyce How do I? 1 26-02-2008 11:00 PM
My Licence Expired - do kayako staff work weekends? chrisbuk112 SupportSuite, eSupport and LiveResponse 2 18-06-2006 05:25 PM
Kayako consulting work? shost Requests 3 26-04-2006 11:09 PM



Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0

Kayako provides online help desk software and support solutions; enabling companies to improve their support and reduce costs.

Our three main products include: SupportSuite, eSupport and LiveResponse



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46