These are chat archives for spring-cloud/spring-cloud

25th
Jul 2017
Shane Witbeck
@digitalsanctum
Jul 25 2017 03:06
@OrangeDog I’d be interested in knowing the answer to your question about Ribbon too
Dave Syer
@dsyer
Jul 25 2017 05:28
Ribbon is in maintenance mode at Netflix (they don't use it in new apps any more)
Spring Cloud will probably continue to support ribbon until a replacement comes along. But we don't have a concrete plan for a replacement yet.
Sushant
@bsushant-athena
Jul 25 2017 07:10
hi, is it possible to move zuul/eureka error logs to stderr?
Dave Syer
@dsyer
Jul 25 2017 07:50
Probably. You'd have to check the docs for your logging system.
Sushant
@bsushant-athena
Jul 25 2017 08:30
the error which I want to move to stderr is this below one>>
e.g.
dev_gateway_zuul | 2017-07-25 08:27:23.717 WARN 1 --- [InstanceMonitor] c.n.t.monitor.instance.InstanceMonitor : Stopping InstanceMonitor for: localhost:80 GATEWAY
dev_gateway_zuul | java.net.SocketTimeoutException: Read timed out
my logging system is log4j only
Dave Syer
@dsyer
Jul 25 2017 09:31
I guess you know where to find the docs for log4j?
Sushant
@bsushant-athena
Jul 25 2017 10:05
yes I know and I've this in my log4j.xml
    <appender name="stdout" class="org.apache.log4j.ConsoleAppender">
        <param name="threshold" value="DEBUG"/>
        <param name="target" value="System.out"/>
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%d{ISO8601} %-5p [%t] %X{job} %c %x - %m%n"/>
        </layout>
        <!-- Block java.lang.ClassNotFoundException from showing on Console, which caused confusion
             on test results-->
        <filter class="org.apache.log4j.varia.LevelRangeFilter">
            <param name="LevelMax" value="INFO"/>
            <param name="LevelMin" value="DEBUG"/>
        </filter>
    </appender>

    <appender name="stderr_file" class="org.apache.log4j.RollingFileAppender">
        <param name="File" value="test.log" />
        <param name="threshold" value="WARN"/>
        <param name="Append" value="true" />
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%d{ISO8601} %-5p [%t] %X{job} %c %x - %m%n"/>
        </layout>
    </appender>