Skip to content
This repository was archived by the owner on Apr 13, 2021. It is now read-only.
JeyaramDPublic archive

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

29 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Loggly Cloud Connector

Introduction

Logs messages into loggly without blocking the mule app. All the messages are saved in a circular queue before being sent to Loggly. A different thread consumes the messages stored in it.

Module docs

Docs can be found here.

FAQ

Why not using the logger message processor that is shipped by default?

The main reason is the ability to save the logs in the cloud. Loggly is a specialized service that supports filtering and searching through logs.

What happens if the circular queue reaches its maxium size and I append a new element to it?

The older message is discarded and replaced with a new one. By no means we are ensuring that everything that you log using this component will be persisted into loggly. The policy is best-effort and no-blocking above all.

Can I use this connector in CloudHub?

Yes, but please take into account the following considerations:

  • Ring buffer may easily overflow under load, so you will be losing messages as soon as that happens (after ´ring_buffer_size´ messages that were queued but not unqueued)
  • If loggly service cannot be reached, the message will be discarded
  • if loggly returns 503 (throttled), the message will be discarded

I have some XYZ requirement different than yours, can I contribute or add something to it?

Yes, please! Add a pull request and we can go over it.

Usage

Add the following requirement to your pom.xml:

<dependency>
    <groupId>org.mule.modules</groupId>
    <artifactId>mule-module-loggly</artifactId>
    <version>1.2.1</version>
</dependency>

The following snippet shows how to use it inside a flow:

...
<loggly:config inputKey="${inputKey}" />
...

<flow name="testFlow">
    <loggly:logger message="This a test."/>
</flow>

That will log "This is a test." each time the flow testFlow is executed.

License

Copyright 2012 MuleSoft, Inc.

Licensed under the Common Public Attribution License (CPAL), Version 1.0.

Happy Hacking!

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages