Comments (5)
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.
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.
@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.
@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.
@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)
- can update akka 2.5.10+? HOT 2
- stop() not part of a trait
- Question: How to distinguish between operation failures
- Timeouts for RedisClientPool
- rediscala endless retry loop when connection fails
- Redis streams support? HOT 1
- This is a mistaken issue..deleted.
- UnsupportedClassVersionError HOT 8
- Redis Protocol error: Got 43 as initial reply byte
- Please make a patch release, with fixes for RedisCluster
- Smembers is set as isMasterOnly = true HOT 1
- [Question] why sentinel not support sentinel auth?
- [Question] Should RedisClientPool extend Transactions?
- [Question] Use SSL to Authenticate
- creating a RedisClient from a typed akka behavior
- [Question] Akka Dispatch error when using rediscala.
- How we can do health check for redis cluster using `redisscala`?
- Null pointer exception at redis.RedisCluster.$anonfun$onConnectStatus$1
- A new connection is getting created every time
- Support for pekko HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rediscala.