org.mule.modules

mule-module-loggly

config-logger

Namespacehttp://www.mulesoft.org/schema/mule/loggly
Schema Locationhttp://www.mulesoft.org/schema/mule/loggly/current/mule-loggly.xsd  (View Schema)
Schema Version1.0
Minimum Mule Version3.2

Module Overview

Loggly Async Logger

This Module handles logging of messages. The policy that is used is asynchronous, this means that each message to log is stored in a Circular Queue of a fixed size. Once the maximum size of the queue is reached the first element will be discarded and replaced with the new logged message.

Summary

Configuration
<loggly:config-logger>
Configure an instance of this module
Message Processors
<loggly:logger>
Logs a message into a previously configured Loggly account.

Configuration

To use the this module within a flow the namespace to the module must be included. The resulting flow will look similar to the following:

<mule xmlns="http://www.mulesoft.org/schema/mule/core"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:loggly="http://www.mulesoft.org/schema/mule/loggly"
      xsi:schemaLocation="
               http://www.mulesoft.org/schema/mule/core
               http://www.mulesoft.org/schema/mule/core/current/mule.xsd
               http://www.mulesoft.org/schema/mule/loggly
               http://www.mulesoft.org/schema/mule/loggly/current/mule-loggly.xsd">

      <!-- here goes your flows and configuration elements -->

</mule>

This module is configured using the config element. This element must be placed outside of your flows and at the root of your Mule application. You can create as many configurations as you deem necessary as long as each carries its own name.

Each message processor, message source or transformer carries a config-ref attribute that allows the invoker to specify which configuration to use.

Attributes
TypeNameDefault ValueDescriptionJava TypeMIME TypeEncoding
xs:string name Optional. Give a name to this configuration so it can be later referenced.
xs:string inputKey Input Key to access the log-sending API.

Message Processors

<loggly:logger>

Logs a message into a previously configured Loggly account.

XML Sample
INCLUDE_ERROR

Attributes
NameDefault ValueDescriptionJava TypeMIME TypeEncoding
config-ref Optional. Specify which configuration to use.
message Message to log String */* UTF-8
Exception Payloads
Payload ClassDescription
Exception error while doing the request and receiving the response

Message Sources

Transformers