You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@sling.apache.org by Juerg <ju...@teesalon.com> on 2023/05/30 19:52:18 UTC

error.log

Hi all

Sorry, where has error.log gone in Sling 12? In earlier versions, it was 
at {sling.path}/sling/logs, along with request and access logs.
In V. 12, it seemingly vanished...

Thanks for a hint.

Best,
Juerg


Re: error.log

Posted by Robert Munteanu <ro...@apache.org>.
Hi Juerg,

(Adding back dev@sling)


On Fri, 2023-06-02 at 15:35 +0200, jcr@proxymit.net wrote:
> Hi Robert
> 
> Thanks for your hint. I had checked there, but probably none was
> created 
> yet as Sling12 seems to be less chatty then prev versions.
> In addition, the web console also just prints at "Log Files" just 
> request and access logs, so confusion was complete...
> 

Glad to hear your immediate problem is solved. IIUC, the web console
'Log files' package previously included the main Sling logs, but
doesn't anymore for Sling 12? Feel free to create a Jira ticket for
this, sounds like a regression.

Thanks,
Robert

> Thanks anyway & nice WE,
> Juerg
> 
> 
> On 31.05.23 15:33, Robert Munteanu wrote:
> > Hi Juerg,
> > 
> > On Tue, 2023-05-30 at 21:52 +0200, Juerg wrote:
> > > Hi all
> > > 
> > > Sorry, where has error.log gone in Sling 12? In earlier versions,
> > > it
> > > was
> > > at {sling.path}/sling/logs, along with request and access logs.
> > > In V. 12, it seemingly vanished...
> > The Sling Starter 12 moved to the feature launcher, and that
> > launcher
> > has a slightly different filesystem layout. My examples use the 13-
> > SNASPHOT version of the Starter, not yet released, but 12 should be
> > similar.
> > 
> > When launching the Starter you can see a bunch of information
> > printed
> > on the terminal, e.g.
> > 
> > $ target/dependency/org.apache.sling.feature.launcher/bin/launcher
> > -f
> > target/slingfeature-tmp/feature-oak_tar.json
> > [INFO]
> > [INFO] Apache Sling Application Launcher
> > [INFO] ---------------------------------
> > [INFO] Initializing...
> > [INFO] Artifact Repositories: [file:///home/robert/.m2/repository,
> > https://repo.maven.apache.org/maven2,
> > https://repository.apache.org/content/groups/snapshots]
> > [INFO] Assembling final feature model...
> > [INFO]
> > [INFO] Assembling launcher...
> > [INFO] Using 230 local artifacts, 0 cached artifacts, and 0
> > downloaded
> > artifacts
> > [INFO]
> > [INFO] Starting launcher...
> > [INFO] Launcher Home: /home/robert/sources/apache/sling/org-apache-
> > sling-starter/launcher
> > [INFO] Cache Directory: /home/robert/sources/apache/sling/org-
> > apache-
> > sling-starter/launcher/cache
> > 
> > 'Launcher Home' indicates where all the runtime information is
> > stored,
> > and the logs are found under $LAUNCHER_HOME/logs.
> > 
> > If you prefer, you can set the launcher home be 'sling' for
> > compatibility
> > 
> > $ target/dependency/org.apache.sling.feature.launcher/bin/launcher
> > -f
> > target/slingfeature-tmp/feature-oak_tar.json -p sling
> > (snip)
> > [INFO] Starting launcher...
> > [INFO] Launcher Home: /home/robert/sources/apache/sling/org-apache-
> > sling-starter/sling
> > 
> > Hope this helps,
> > Robert


Re: error.log

Posted by Robert Munteanu <ro...@apache.org>.
Hi Juerg,

On Tue, 2023-05-30 at 21:52 +0200, Juerg wrote:
> Hi all
> 
> Sorry, where has error.log gone in Sling 12? In earlier versions, it
> was 
> at {sling.path}/sling/logs, along with request and access logs.
> In V. 12, it seemingly vanished...

The Sling Starter 12 moved to the feature launcher, and that launcher
has a slightly different filesystem layout. My examples use the 13-
SNASPHOT version of the Starter, not yet released, but 12 should be
similar.

When launching the Starter you can see a bunch of information printed
on the terminal, e.g. 

$ target/dependency/org.apache.sling.feature.launcher/bin/launcher -f
target/slingfeature-tmp/feature-oak_tar.json
[INFO] 
[INFO] Apache Sling Application Launcher
[INFO] ---------------------------------
[INFO] Initializing...
[INFO] Artifact Repositories: [file:///home/robert/.m2/repository,
https://repo.maven.apache.org/maven2,
https://repository.apache.org/content/groups/snapshots]
[INFO] Assembling final feature model...
[INFO] 
[INFO] Assembling launcher...
[INFO] Using 230 local artifacts, 0 cached artifacts, and 0 downloaded
artifacts
[INFO] 
[INFO] Starting launcher...
[INFO] Launcher Home: /home/robert/sources/apache/sling/org-apache-
sling-starter/launcher
[INFO] Cache Directory: /home/robert/sources/apache/sling/org-apache-
sling-starter/launcher/cache

'Launcher Home' indicates where all the runtime information is stored,
and the logs are found under $LAUNCHER_HOME/logs.

If you prefer, you can set the launcher home be 'sling' for
compatibility

$ target/dependency/org.apache.sling.feature.launcher/bin/launcher -f
target/slingfeature-tmp/feature-oak_tar.json -p sling
(snip)
[INFO] Starting launcher...
[INFO] Launcher Home: /home/robert/sources/apache/sling/org-apache-
sling-starter/sling

Hope this helps,
Robert