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
1
vote
1 answer

Does Tinylog work with pool connections?

Does Someone know if Tinylog works with a pool connections when it is used in tomcat? I have not found the documentation related with this (Here). could someone tell me the link to read it. if Tinylog does not have this option, what other api will…
J. Abel
  • 890
  • 3
  • 17
  • 38
1
vote
1 answer

using tinylog to write loggings into tomcat's log-folder

I want to write logging-messages to a defined file into the tomcat's log-folder, using eclipse, maven, tinylog. Problem: There is no webapp.log as soon as I run the app in tomcat. In eclipse everything works fine. What I did: add Maven-dependency…
Klara Fall
  • 11
  • 4
0
votes
1 answer

How to redirect System.out and System.err to tinylog logger?

I am trying to use tinylog but can't figure out how to redirect System.out and System.err to the logger. With log4j2, I did it like this (from java…
Betalord
  • 109
  • 7
0
votes
1 answer

Output Liquibase log through TinyLog

I want to use TinyLog to log Liquibase output. On the Liquibase website I found the information that they are now using JUL for logging:…
bitcanvas
  • 11
  • 3
0
votes
1 answer

Tinylog Android, VerifyError exception

After updating tinylog to version 2.5.0-M1.1 \ 2.5.0-M2, On Android 4.4 API 19 Started throwing VerifyError exceptions as soon as ThreadContext.put() or org.tinylog.Logger.tag() is called. On other versions of android everything is fine Translation…
Gorbachew
  • 5
  • 1
0
votes
1 answer

How can i get the current log file name on runtime from tinylog

i am using tinylog 2 and i want to load the current log file content to show it in my gui. My tinylog.properties looks something like this: writer=rolling file writer.file=project_{date: yyyy-MM-dd}.log So my problem is: How can i get the current…
0
votes
1 answer

Tinylog Android, is it possible to clear the file?

I'm using the Tinylog library with the "rolling file" function to write logs to a file. Sometimes I need to clear a file. Tried to do it with normal Java methods but it breaks the file and makes it hard to read. Is there a way to clear the log file…
Gorbachew
  • 5
  • 1
0
votes
1 answer

In TinyLog what is the platform independent format character for new line in tinylog.properties

In tinylog.properties what do you you specify as the platform independant character for new line ?
vidar
  • 11
  • 1
0
votes
1 answer

How can i log runtime exception using TinyLog

While doing experiment over tinylog the issue i am facing is am not able to print the run time exception logs. For ex. int a =0 ;int b = 10;int c = b/a; As this will give arithmetic exception but this is not getting recorder in logs.
0
votes
1 answer

Tinylog: Getting "LOGGER ERROR: Illegal severity level" on Json writer

I tried implementing the below mentioned code in my system. I'm getting a error like: LOGGER ERROR: Invalid charset: UTF-8 LOGGER ERROR: Illegal severity level: error `writer3 = json writer3.level = error …
Dinesh k
  • 3
  • 1
0
votes
1 answer

Tinylog capture System Error output stream to log file

I am using Tinylog for logging everything in my java application. I capture all the exceptions and logs them. org.tinylog tinylog-api
Neelesh
  • 666
  • 6
  • 17
0
votes
1 answer

How to use or where to place TinyLog properties file with Maven InteliJ

According to the TinyLog website The properties file should be named "tinylog.properties" and placed in the default package. In common IDEs like Eclipse and Netbeans, it is sufficient to put "tinylog.properties" into the "src/" folder or for Maven…
0
votes
1 answer

How to set the path of the file writer to location of the jar using it?

So i recently switch from starting the jar file from a service rather than a script that first goes to the relevant directory. Is there a way to make sure that the path to the jar file is used instead of wherever the service started it? Inside the…
Craio
  • 55
  • 5
0
votes
1 answer

TinyLog v2 with multimodule maven project spring-boot

Hi I have a multimodule springboot based project and I would like to keep logging separate for each module. I am using tiny log 2, but the issue I am facing is that, when there is a stack trace thrown, it is not getting captured in my rolling log…
Tuhin Subhra Mandal
  • 473
  • 1
  • 5
  • 15
0
votes
1 answer

Tinylog: Combination of logger, tagged logger and slf4j behaves strange

I have the following maven configuration: org.tinylog slf4j-tinylog 2.2.0
Christof Nasahl
  • 229
  • 3
  • 6