Wednesday, 2 May 2012

Logging Activates, Deactivates and Deletes

To keep a log of who has activated or deactivated a page, add this to your logging :-

Log Level: Debug

Logger: com.day.cq.replication.impl.queue.ReplicationJob

You will then get entries like this in your log file :-

01.05.2012 13:58:07.460 *DEBUG* [123.12.34.56 [0005877072284] POST /bin/replicate.json HTTP/1.1] com.day.cq.replication.impl.queue.ReplicationJob Creating replication job null (action: ReplicationAction{type=ACTIVATE, path[0]='/content/mysite/en/blah/blah', time=1335877072325, userId='martin', revision='null'}) with content ReplicationContentFacade{path='/var/replication/data/g4e8029a-deec-87c7-8176-6d4eadd8fda5/84/84a8bf03-a58a-482d-8186-a7d2819ca365', contentType='application/cq5-replication-durbo', contentLength=9492}

No comments:

Post a Comment