manifoldcf-dev mailing list archives

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

    [ https://issues.apache.org/jira/browse/CONNECTORS-1460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16182629#comment-16182629
] 

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="">
  <Appenders>
    <File name="MyFile" fileName="logs/manifoldcf.log">
      <PatternLayout>
        <Pattern>%5p %d{ISO8601} (%t) - %m%n</Pattern>
      </PatternLayout>
    </File>
  </Appenders>
  <Loggers>
    <Root level="debug">
      <AppenderRef ref="MyFile"/>
    </Root>
  </Loggers>
</Configuration>

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: https://issues.apache.org/jira/browse/CONNECTORS-1460
>             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 (https://manifoldcf.apache.org/release/release-2.8.1/en_US/how-to-build-and-deploy.html#Logging+configuration+file+properties)
the mentioned format is the old one (log4j) instead of the log4j2 one



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message