Skip to content

Instantly share code, notes, and snippets.

@chetanmeh
chetanmeh / sling-logging-categories.md
Last active December 10, 2015 23:38
Useful categories for logging in Sling

#Logging Categories

  • org.apache.sling.auth.core
  • org.apache.sling.engine
  • org.apache.sling.resourceresolver
  • org.apache.sling.jcr.resource
  • org.apache.sling.audit.osgi.installer - Audit logs of installation done by Sling OSGi Installer

#Web Console Url

@chetanmeh
chetanmeh / MultiplexingAuthorizableAction.java
Created October 19, 2012 14:42
DS sample to manage multiple references (SLING-2575)
import java.util.Collection;
import java.util.Collections;
import java.util.Map;
import java.util.concurrent.ConcurrentSkipListMap;
import javax.jcr.*;
import org.apache.felix.scr.annotations.*;
import org.apache.jackrabbit.api.security.user.*;
import org.apache.jackrabbit.core.security.user.action.AbstractAuthorizableAction;
//Provide details around the bootdelgation state
println "Bootdelgation property value :- "+bundleContext.getProperty("org.osgi.framework.bootdelegation")
println "Felix bootdelgation entries"
bundleContext.bundle.framework.bootPackages.each {
println it
}
@chetanmeh
chetanmeh / logging-example.txt
Created August 19, 2012 13:38
Pax runner example demonstrating Logging
#This is a Pax Runner config file which uses Felix ConfigAdmin, Pax Logging and other bundles to
#demonstrate how to configure pax logging.
#It uses File install bundle and configures it to watch the config folder. We would add org.ops4j.pax.logging.cfg
#file to this folder which would then be picked by File install and thus update Pax logging config
--platform=felix
--vmOptions=-Dorg.osgi.service.http.port=9090 \
-Dfelix.fileinstall.dir=../config
#List of profiles to run