Stackify API for Java
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Maven Central Build Status Coverage Status

Stackify API for Java

Errors and Logs Overview:

Sign Up for a Trial:

Log4j 1.2 Appender:

Logback Appender:


Add it as a maven dependency:


Configuration and Usage for Direct Logger

You need a file on your classpath that defines the configuration required for the Log API:



The Stackify logger has built-in data masking for credit cards and social security number values.

Enable Masking:

Add stackify.log.mask.enabled=true to

Customize Masking:

The example below has the following customizations:

  1. Credit Card value masking is disabled (stackify.log.mask.CREDITCARD=false)
  2. IP Address masking is enabled (stackify.log.mask.IP=true). Built in masks are CREDITCARD, SSN and IP.
  3. Custom masking to remove vowels using a regex (stackify.log.mask.custom.VOWELS=[aeiou])

Note: If you are logging from a device that has the stackify-agent installed, the environment setting is optional. We will use the environment associated to your device in Stackify.

Log a message to Stackify

Logger.queueMessage("info", "Test message");

Log an exception to Stackify

Logger.queueException("error", e);

Log a message and exception to Stackify

Logger.queueException("error", "Test message", e);

Be sure to shutdown the Direct Logger to flush this appender of any messages and shutdown the background thread:


RUM Manual Instrumentation

Real User Monitoring (RUM) manual instrumentation allows you to specify where the RUM JavaScript block is injected.

It is recommended you provide a file in your application classpath with the following content:

stackify.application=My Application Name
stackify.environment=My Environment Name

Your application code will need to call out to the Stackify com.stackify.apm.Stackify.getRUMJavaScriptBlock() method in the <head> section as detailed below:

JSP Example

        <%= com.stackify.apm.Stackify.getRUMJavaScriptBlock() %>
        <script and link tags>


Copyright 2013 Stackify, LLC.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.