#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
| #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 |
| //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 | |
| } |
#Logging Categories
#Web Console Url
| 11 #Bundle Id | |
| slinginstall:/path/to/foo.jar #Bundle original location | |
| 32 #Persistence State (INSTALLED, RESOLVED etc) | |
| 1 #Start level | |
| 1358768421064 #Last modified | |
| 0 #Refresh Count |
| /** | |
| * Utility class that diffs 2 Intellij test runs and performs diff between the two runs. It works | |
| * on xml report created by Intellij as mentioned in http://www.jetbrains.com/idea/webhelp/export-test-results.html | |
| * | |
| * How to run | |
| * | |
| * - Run first test suite and export the result as xml | |
| * - Run first test suite again post change and export the result as xml | |
| * | |
| * Run the script |
| source ~/path/to/tabs.sh | |
| load-dev(){ | |
| #Create sessi data format '<Tab Name/Title> <Profile Name> <Working Directory>' | |
| local sessions=( | |
| oak Shell 'clear; cd ~/git/apache/oak' | |
| sling Shell 'clear; cd ~/git/apache/sling' | |
| felix Shell 'clear; cd ~/git/apache/felix' | |
| ) | |
| start_sessions sessions[@] |
| This scripts provide details related to various caches used in Oak MongoMK module while running within Sling OSGi Container | |
| The script is based on (JAMM) [1]. Steps are provided below | |
| 1. Download JAMM from Maven | |
| $wget http://repo1.maven.org/maven2/com/github/stephenc/jamm/0.2.5/jamm-0.2.5.jar | |
| 2. Modify the Quickstart launching by specifying agent and bootdelegation list | |
| $java -javaagent:<path to>/jamm.jar -Dorg.apache.sling.launcher.bootdelegation=,org.github.jamm -jar | |
| 3. Deploy the Script Console jar | |
| $wget http://repo1.maven.org/maven2/org/apache/sling/org.apache.sling.scripting.console/1.0.0/org.apache.sling.scripting.console-1.0.0.jar | |
| $wget http://repo1.maven.org/maven2/org/codehaus/groovy/groovy-all/2.1.3/groovy-all-2.1.3.jar |
| /* | |
| * Licensed to the Apache Software Foundation (ASF) under one | |
| * or more contributor license agreements. See the NOTICE file | |
| * distributed with this work for additional information | |
| * regarding copyright ownership. The ASF licenses this file | |
| * to you under the Apache License, Version 2.0 (the | |
| * "License"); you may not use this file except in compliance | |
| * with the License. You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| #Logstash Config File for parsing existing Logs in Cq/Sling based application | |
| input { | |
| stdin { | |
| type => "stdin-type" | |
| } | |
| file { | |
| type => "cq-ci-author" | |
| path => ["/path/crx-quickstart/logs/error.log"] | |
| debug => false |