manifoldcf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luis Cabaceira (JIRA)" <>
Subject [jira] [Commented] (CONNECTORS-1460) Wrong logging configuration file format
Date Wed, 27 Sep 2017 14:13:00 GMT


Luis Cabaceira commented on CONNECTORS-1460:

I've had the exact same problem and the issue is related to the log level setting that apparently
its not honoured for the connectors logging. Normal logs are still being written to logs/manifoldcf.log.

When you change the log level to let's say DEBUG or TRACE by changing the Root level in logging.xml
(see below)

<Configuration status="warn" name="ManifoldCF" packages="">
    <File name="MyFile" fileName="logs/manifoldcf.log">
        <Pattern>%5p %d{ISO8601} (%t) - %m%n</Pattern>
    <Root level="debug">
      <AppenderRef ref="MyFile"/>

You do get all the other logs in DEBUG :

DEBUG 2017-09-27T15:01:21,844 (qtp895366343-408) - Created '20' parsers.
DEBUG 2017-09-27T15:01:21,844 (qtp895366343-408) - Velocimacro : "velocimacro.library" is
not set.  Trying default library: VM_global_library.vm
DEBUG 2017-09-27T15:01:21,844 (qtp895366343-408) - Could not load resource 'VM_global_library.vm'
from ResourceLoader org.apache.manifoldcf.core.i18n.MCFVelocityResourceLoader: Resource 'VM_global_library.vm'
not found.
DEBUG 2017-09-27T15:01:21,844 (qtp895366343-408) - Velocimacro : Default library not found.
DEBUG 2017-09-27T15:01:21,844 (qtp895366343-408) - Velocimacro : allowInline = true : VMs
can be defined inline in templates
DEBUG 2017-09-27T15:01:21,844 (qtp895366343-408) - Velocimacro : allowInlineToOverride = false
: VMs defined inline may NOT replace previous VM definitions
DEBUG 2017-09-27T15:01:21,844 (qtp895366343-408) - Velocimacro : allowInlineLocal = false
: VMs defined inline will be global in scope if allowed.
DEBUG 2017-09-27T15:01:21,844 (qtp895366343-408) - Velocimacro : autoload off : VM system
will not automatically reload global library macros
DEBUG 2017-09-27T15:01:21,845 (qtp895366343-408) - ResourceManager : found editSpecification_CMISQuery.html
with loader org.apache.velocity.runtime.resource.ResourceCacheImpl

BUT, when inside my connector development if i try to log as debug, for example :

Logging.connectors.debug("Testing DEBUG on logging.xml settings by Luis Cabaceira");

That is not outputted in manifoldcf.log. To prove this i've executed the same line in error
and it does get written.

Logging.connectors.error("Testing Error log on logging.xml settings by Luis Cabaceira");

I assume that the connectors logging implementation is not reading its configuration from
the same place...

> Wrong logging configuration file format
> ---------------------------------------
>                 Key: CONNECTORS-1460
>                 URL:
>             Project: ManifoldCF
>          Issue Type: Task
>          Components: Documentation
>    Affects Versions: ManifoldCF 2.8.1
>            Reporter: Julien Massiera
>            Assignee: Karl Wright
>            Priority: Minor
>             Fix For: ManifoldCF 2.9
> In the 2.8.1 documentation concerning the logging configuration file (
the mentioned format is the old one (log4j) instead of the log4j2 one

This message was sent by Atlassian JIRA

View raw message