Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: DAViCal: General

Debug/logging?

 

 

DAViCal general RSS feed   Index | Next | Previous | View Threaded


rdk at krupczak

May 16, 2012, 2:35 PM

Post #1 of 4 (299 views)
Permalink
Debug/logging?

Hi!

I've got davical now working with multiple ldap/users/groups and
sharing calendars. Nice!

Going forward, I'd like to log any time a calendar entry is added,
removed, or modified.

I've been looking over the debug entries in the config and I dont know
how to map these to the debugging primitives.

Any idea which debug options to turn on, if possible, so that I can
only log calendar add/remove/modify? Is this even possible?

(Just debugging 'put' operations gives me more logging than I would
normally want. I was hoping to not have to read all the protocol
specs.)

Thanks,

Bobby


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Davical-general mailing list
Davical-general [at] lists
https://lists.sourceforge.net/lists/listinfo/davical-general


andrew at morphoss

May 18, 2012, 3:13 PM

Post #2 of 4 (289 views)
Permalink
Re: Debug/logging? [In reply to]

On Wed, 2012-05-16 at 17:35 -0400, Bobby Krupczak wrote:
> Hi!
>
> I've got davical now working with multiple ldap/users/groups and
> sharing calendars. Nice!
>
> Going forward, I'd like to log any time a calendar entry is added,
> removed, or modified.
>
> I've been looking over the debug entries in the config and I dont know
> how to map these to the debugging primitives.
>
> Any idea which debug options to turn on, if possible, so that I can
> only log calendar add/remove/modify? Is this even possible?
>
> (Just debugging 'put' operations gives me more logging than I would
> normally want. I was hoping to not have to read all the protocol
> specs.)

Hi Bobby,

You actually want to use the hook described here:

http://wiki.davical.org/w/Configuration/hooks/log_caldav_action

Cheers,
Andrew.

--
------------------------------------------------------------------------
andrew (AT) morphoss (DOT) com +64(272)DEBIAN
Let us not seek to satisfy our thirst for freedom by drinking from
the cup of bitterness and hatred. -- Martin luther King Jr.

------------------------------------------------------------------------
Attachments: signature.asc (0.82 KB)


rdk at krupczak

May 18, 2012, 3:28 PM

Post #3 of 4 (293 views)
Permalink
Re: Debug/logging? [In reply to]

Hi!

> > (Just debugging 'put' operations gives me more logging than I would
> > normally want. I was hoping to not have to read all the protocol
> > specs.)
>
> Hi Bobby,
>
> You actually want to use the hook described here:
>
> http://wiki.davical.org/w/Configuration/hooks/log_caldav_action

Thanks! Am I inferring correctly when I think that this already
implemented as the following in my config file?

$c->dbg['caldav'] = 1;

That is, will I accomplish the same thing by simply enabling the about
in my davical config file?

Thanks,

Bobby




------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Davical-general mailing list
Davical-general [at] lists
https://lists.sourceforge.net/lists/listinfo/davical-general


andrew at morphoss

May 19, 2012, 4:58 PM

Post #4 of 4 (287 views)
Permalink
Re: Debug/logging? [In reply to]

On Fri, 2012-05-18 at 18:28 -0400, Bobby Krupczak wrote:
> Hi!
>
> > > (Just debugging 'put' operations gives me more logging than I would
> > > normally want. I was hoping to not have to read all the protocol
> > > specs.)
> >
> > Hi Bobby,
> >
> > You actually want to use the hook described here:
> >
> > http://wiki.davical.org/w/Configuration/hooks/log_caldav_action
>
> Thanks! Am I inferring correctly when I think that this already
> implemented as the following in my config file?
>
> $c->dbg['caldav'] = 1;
>
> That is, will I accomplish the same thing by simply enabling the about
> in my davical config file?

Quite different. The log_caldav_action is specifically about structured
logging (or processing) of the action of CREATE/UPDATE/DELETE of DAV
resources in a flexible way. The example solution is to log them to a
file, and can be used for (e.g.) applying the changes to another place,
or updating a static copy of a collection, etc., etc.

The:
$c->dbg = array( various things to enable debugging for);
is for debugging during development. The 'caldav' thing you have enabled
is primarily used for debugging some fairly high-level stuff and
preprocessing of the incoming request.

Cheers,
Andrew.
--
------------------------------------------------------------------------
andrew (AT) morphoss (DOT) com +64(272)DEBIAN
Dyslexia means never having to say that you're ysror.
------------------------------------------------------------------------
Attachments: signature.asc (0.82 KB)

DAViCal general RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.