Giter VIP home page Giter VIP logo

Comments (5)

etaty avatar etaty commented on July 18, 2024

Hi,

The loglevel in the reference.conf is not applied to Redis actors at all.
It is a commented line

I suppose you are speaking about :
alexanderscott@6901e54
Can you do a pull request ?

In the end you would like to overwrite the output level of rediscala with a conf file in log4j or slf4j ?

from rediscala.

alexanderscott avatar alexanderscott commented on July 18, 2024

I see it is commented - didn't realize it was used in the tests to set redis-server verbosity. And yes, the goal was to quiet the logging coming from RedisClient b/c it is filling up logs at WARN-level with a non-issue.

Figured out how to quiet the reconnection logging coming from the RedisClientActor by setting loglevel for the package inside of a local logback file. So this isn't really an issue anymore.

Opened pull regardless with logging via slf4j and log4j. Not a critical contribution - really up to you whether or not to merge.

Thanks again.

from rediscala.

AlexLaviolette avatar AlexLaviolette commented on July 18, 2024

@alexanderscott I'm having trouble quieting the connection logging. Would you mind sharing what you added to the logback conf to fix it?

from rediscala.

alexanderscott avatar alexanderscott commented on July 18, 2024

@AlexLaviolette can quiet logging by adding this line into your logback.xml configuration file, which should live in your static resources dir:

 <logger name="redis" level="ERROR"/>

And add logback as a library dependency to the project:

libraryDependencies += "ch.qos.logback"  % "logback-classic" % "1.0.9"

Can set your akka.loglevel to whatever in config, but it should still obey the rules established by logback.

Example logback.xml:

<?xml version="1.0" encoding="UTF-8"?>

<configuration>

    <logger name="redis" level="ERROR"/>

    <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
        <encoder>
            <pattern>%date %X{akkaSource} %highlight(%-5level) %cyan(%logger{5}) - %msg %n</pattern>
        </encoder>
    </appender>

    <root level="DEBUG">
        <appender-ref ref="CONSOLE"/>
    </root>

</configuration>

from rediscala.

AlexLaviolette avatar AlexLaviolette commented on July 18, 2024

@alexanderscott I had tried something like that but it didn't seem to work. I'll give it another shot, thanks a bunch!

from rediscala.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.