Stackify Log Appender for Logback


Лицензия

Лицензия

Категории

Категории

Logback Библиотеки уровня приложения Logging
Группа

Группа

com.stackify
Идентификатор

Идентификатор

stackify-log-logback
Последняя версия

Последняя версия

4.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

Stackify Log Appender for Logback
Stackify Log Appender for Logback
Ссылка на сайт

Ссылка на сайт

https://github.com/stackify/stackify-log-logback
Организация-разработчик

Организация-разработчик

Stackify, LLC
Система контроля версий

Система контроля версий

https://github.com/stackify/stackify-log-logback

Скачать stackify-log-logback

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.stackify/stackify-log-logback/ -->
<dependency>
    <groupId>com.stackify</groupId>
    <artifactId>stackify-log-logback</artifactId>
    <version>4.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.stackify/stackify-log-logback/
implementation 'com.stackify:stackify-log-logback:4.0.1'
// https://jarcasting.com/artifacts/com.stackify/stackify-log-logback/
implementation ("com.stackify:stackify-log-logback:4.0.1")
'com.stackify:stackify-log-logback:jar:4.0.1'
<dependency org="com.stackify" name="stackify-log-logback" rev="4.0.1">
  <artifact name="stackify-log-logback" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.stackify', module='stackify-log-logback', version='4.0.1')
)
libraryDependencies += "com.stackify" % "stackify-log-logback" % "4.0.1"
[com.stackify/stackify-log-logback "4.0.1"]

Зависимости

compile (4)

Идентификатор библиотеки Тип Версия
com.stackify : stackify-api-java jar 4.0.0
com.fasterxml.jackson.core : jackson-databind jar 2.9.10.5
ch.qos.logback : logback-core jar 1.0.13
ch.qos.logback : logback-classic jar 1.0.13

provided (1)

Идентификатор библиотеки Тип Версия
org.projectlombok : lombok jar 1.16.10

test (5)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.11
org.mockito : mockito-core jar 1.9.5
org.powermock : powermock-core jar 1.5.6
org.powermock : powermock-module-junit4 jar 1.5.6
org.powermock : powermock-api-mockito jar 1.5.6

Модули Проекта

Данный проект не имеет модулей.

Maven Central Coverage Status

Stackify Logback Logger

Logback logger appender for sending log messages and exceptions to Stackify.

Installation

Add it as a maven dependency:

<dependency>
    <groupId>com.stackify</groupId>
    <artifactId>stackify-log-logback</artifactId>
    <version>4.0.1</version>
    <scope>runtime</scope>
</dependency>

Usage

Example appender configuration:

<appender name="STACKIFY" class="com.stackify.log.logback.StackifyLogAppender">
    <apiKey>YOUR_API_KEY</apiKey>
    <application>YOUR_APPLICATION_NAME</application>
    <environment>YOUR_ENVIRONMENT</environment>
</appender>

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.

Be sure to shutdown Logback to flush this appender of any errors and shutdown the background thread:

ch.qos.logback.classic.LoggerContext loggerContext = (ch.qos.logback.classic.LoggerContext) org.slf4j.LoggerFactory.getILoggerFactory();
loggerContext.stop();

Masking

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

Enable Masking:

Add <maskEnabled>true</maskEnabled> inside the <appender> ... </appender> tag.

Customize Masking:

The example below has the following customizations:

  1. Credit Card value masking is disabled (<maskCreditCard>false</maskCreditCard>)
  2. IP Address masking is enabled (<maskIP>true</maskIP>).
  3. Custom masking to remove vowels using a regex (<maskCustom>[aeiou]</maskCustom>)
<appender name="STACKIFY" class="com.stackify.log.logback.StackifyLogAppender">
    <apiKey>YOUR_API_KEY</apiKey>
    <application>YOUR_APPLICATION_NAME</application>
    <environment>YOUR_ENVIRONMENT</environment>
      
    <maskEnabled>true</maskEnabled>
    <maskCreditCard>false</maskCreditCard>
    <maskSSN>true</maskSSN>
    <maskIP>true</maskIP>
    <maskCustom>[aeiou]</maskCustom> 
</appender>

Legacy Support

For legacy support of Java 1.6 and 1.7 use the following maven dependency:

<dependency>
    <groupId>com.stackify</groupId>
    <artifactId>stackify-log-logback</artifactId>
    <version>2.1.2</version>
</dependency>

License

Copyright 2019 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

http://www.apache.org/licenses/LICENSE-2.0

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.

com.stackify

Stackify

Stackify helps developers manage and troubleshoot application problems with integrated monitoring, metrics, errors & logs.

Версии библиотеки

Версия
4.0.1
4.0.0
2.1.2
2.1.1
2.1.0
2.0.2
2.0.1
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.15
1.0.14
1.0.13
1.0.12
1.0.11
1.0.10
1.0.9
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0