Questions tagged [tinylog]

Tag for questions about logging with tinylog or configuring the Java logging framework

tinylog is a lightweight open source logging framework for Java, Kotlin, Scala, and Android. It is licensed under the Apache Software License, version 2.0

Official Website:

Useful Links:

42 questions
4
votes
4 answers

Multiple writers for tinylog

I'm using tinylog for my logging needs and were wondering if anybody knows a way to log to a file and the console. When I use the configuration below I only get output on the console. When I remove .writer(new ConsoleWriter())the logging is done…
cete3
  • 647
  • 6
  • 19
2
votes
2 answers

Android: a library to write log on file?

I have to write log on file and send it to the server every each app restart, or when the number of log file is enough. After internet research: I have found Timber and java.util.logging.Logger. I think to create a custom Timber tree and to use…
aeroxr1
  • 1,014
  • 1
  • 14
  • 36
2
votes
0 answers

Tinylog writing 2GB of nonsense under Windows, under Linux it behaves has expected. What could be causing this?

I've recently added logging support using Tinylog to a Java application I'm working on. I'm developing under Linux (Kubuntu latest) and deploying to a Windows server. The application is built using a Gradle task which sets up a "fat jar" so I don't…
2
votes
1 answer

using tinylog 2.0

I try to use tinylog 2.0 on android, and I have a problem. Logger prints that error: LOGGER WARN: No logging framework implementation found in classpath. Add tinylog-impl.jar for outputting log entries. But in gradle file I have implementation…
Dmitriy
  • 133
  • 4
1
vote
0 answers

Ability to apply specific tinylog writer

As a developer I want to have an ability to implicitly or explicitly call particular writer, not all of them. Similar to how logback's name property works. It allows you to assign particular logger(class) to particular appender e.g. Is it be…
slesh
  • 1,902
  • 1
  • 18
  • 29
1
vote
1 answer

How to write rolling file to user.home directory

How is it possible to write the rolling files to the user.home directory. I tried so far to set an environment variable to access the path in the properties-file of tinylog: System.setProperty("tinylog.directory",…
Dirk
  • 13
  • 6
1
vote
1 answer

Proguard obfuscation fails with tinylog

I am using Proguard together with TinyLog. The following are defined in the proguard.conf file as it was stated on the Tinylog home page -keepnames interface org.tinylog.** -keepnames class * implements org.tinylog.** -keepclassmembers class *…
vidar
  • 11
  • 1
1
vote
1 answer

Shared tinylog configuration with separate files for each application

Can tinylog use the same configuration file for multiple applications (war's), but write the log based on the display-name in the web.xml? Right now, all our web applications use log4j and share a configuration file. The log files are written with…
Tim Perry
  • 3,066
  • 1
  • 24
  • 40
1
vote
1 answer

tinylog2 - reconfigure during run

is there a way to reconfigure tinylog2 properties after I already logged some lines ? I want to change the log file name during run, when the user changes selections (working with diferent files) ,without restart my program. my code works only first…
orkiman
  • 11
  • 1
1
vote
1 answer

Hello, I was wondering is there any way for use Tinylog with app which is requiring Log4J2 implementation. (adapter or something)

I was wondering is there any way for use Tinylog with app which is requiring Log4J2 implementation. (adapter or something)
shitzuu
  • 11
  • 1
1
vote
1 answer

Using tinylog with two console writers in parallel

I am using https://mvnrepository.com/artifact/org.tinylog/tinylog-api/2.2.0 in our project. I can configure my writer format the following way: Configuration.set("writer", "console"); Configuration.set("writer.format", "{level}:…
Christof Nasahl
  • 229
  • 3
  • 6
1
vote
1 answer

Usage of JNDI properties for tinylog configuration

We use a JNDI-Property (set in Tomcat webserver) to determine the stage (DEV/TEST/QA/PRD) in order to configure some application-details. Now we want to replace the homebrew-logging with an external tool and want to give tinylog a try. But we wonder…
LWn
  • 13
  • 2
1
vote
1 answer

Using File Logger with Tinylog 1.3.5 on Android 9.0

Does Tinylog 1.3.5 (the latest 1.x.x version) support logging into files on Android? I have tried to get it to work but to no avail. Logging via catlog works. Configuring tinylog via a "tinylog.properties" file also works, as long as…
Wayne
  • 13
  • 3
1
vote
1 answer

Tinylog: Using DailyPolicy and SizePolicy together on a RollingFileWriter

If a RollingFileWriter is configured with both a DailyPolicy and a SizePolicy, and the size of a daily log exceeds the size configured in the SizePolicy, presumably Tinylog what will close the current log file and open a new one, but what name will…
1
vote
1 answer

How to write tinylog logs to different files based on log level?

I am using tinylog for various features it has. My application needs a very fast asynchronous logging. I can able to log happily. I have only two issues. 1) All my error logs and the info, some debug logs are jumbled into a single file. How can I…
hema chandra
  • 402
  • 1
  • 8
  • 29
1
2 3