All Downloads are FREE. Search and download functionalities are using the official Maven repository.

.logback-sms-appender.0.2.1.source-code.logback.xml Maven / Gradle / Ivy

There is a newer version: 0.3.0
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<configuration debug="false">
    <contextName>MitakeSMS-Appender</contextName>
    <property name="LOG_HOME" value="logs"/>
    <property name="CHARSET" value="UTF-8"/>
    <property name="PATTERN" value="%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n"/>

    <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
        <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
            <pattern>${PATTERN}</pattern>
            <charset>${CHARSET}</charset>
        </encoder>
    </appender>

    <appender name="FILE" class="ch.qos.logback.core.FileAppender">
        <file>${LOG_HOME}/myLog.log</file>
        <encoder>
            <pattern>${PATTERN}</pattern>
            <charset>${CHARSET}</charset>
        </encoder>
    </appender>

    <appender name="SMS" class="tw.com.mitake.logback.appender.SmsAppender">
        <username>my_username</username> <!-- Your Mitake SMS username -->
        <password>my_password</password> <!-- Your Mitake SMS password -->
        <to>0912345678</to> <!-- Your Mitake SMS destination phone number -->
        <title>Logback SMS Appender</title> <!-- Your Mitake SMS title -->
        <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
            <pattern>${PATTERN}</pattern>
            <charset>${CHARSET}</charset>
        </encoder>
    </appender>

    <root level="INFO" additivity="false">
        <appender-ref ref="SMS"/>
        <appender-ref ref="STDOUT"/>
        <appender-ref ref="FILE"/>
    </root>
</configuration>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy