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
0
votes
1 answer

How to write one-line logs with tinylog 2?

I'm using https://tinylog.org/v2/ for logging. Per default the framework logs each statement in two lines 2020-10-25 20:07:27 [main] org.reflections.Reflections.scan() INFO: Reflections took 288 ms to scan 1 urls, producing 5 keys and 22 values…
Christof Nasahl
  • 229
  • 3
  • 6
0
votes
0 answers

Writing logs with Tinylog on Android

I want to save logs on Android using tinylog and I have added dependencies and configuration file. Sometimes the file is created with content and other times the file is empty. It seems like random behavior. Also the app has writing and reading…
JuanDYB
  • 590
  • 3
  • 9
  • 23
0
votes
1 answer

How to use tinylog in Eclipse plugin

I am writing an Eclipse plugin and want to use tinylog in my plugin code. I tried this: 1). modified Eclipse config file (eclipse.ini) to add this line: -Dtinylog.configuration=C:\eclipse-cpp-2018-09-win32-x86_64\eclipse\tinylog.properties 2).…
0
votes
1 answer

tinylog2 does not create log file

I am using tinylog2 to log in my application. When I set the config to log to console it works fine. On the other hand, when I change writer to value "file" It is not working and I don't know why. I tried to search, but it seems that the problem is…
Pavel Petr
  • 51
  • 8
0
votes
1 answer

Getting Writer error on using TinyLog

I tried using TinyLog for a sample application to make sure understanding how it works, so that i can use it for my work application. But, while using i get an exception to type cast the Writer (Compile time error). If i typecast it, it throws…
Prasanth
  • 15
  • 7
0
votes
1 answer

How to create config properties for tinylog at runtime with User preferences

I would like the user to be able to choose where the error logs in my application are sent to. I am using tinylog at the moment. I have used their example code to configure where errors are written to (the user preference is chosen via a Swing…
Sebastian Zeki
  • 6,690
  • 11
  • 60
  • 125
0
votes
0 answers

tinylog formatting for double values

I use tinylog for logging to file and console both. And I face with issue, that when I write to log double numbers, it's displayed in scientific (exponential) notation. For example, I have such line in my code: Logger.info("Community with…
Hleb
  • 7,037
  • 12
  • 58
  • 117
0
votes
1 answer

loading config file from default package vs from classpath

I'm getting a crazy error while loading a config file in a JAX-RS application on jetty. public class Configuration { public static final Properties config = new Properties(); static { config.clear(); try (InputStream…
Majid Azimi
  • 5,575
  • 13
  • 64
  • 113
0
votes
1 answer

tinylog is formatting ordinary numbers like money

I'm using tinylog inside glassfish for logging my web service requests. here is a log statement: Logger.info("record received from user: {0}, stationAxisId: {1}. inserted with recordId: {2}. server timestamp: {3}", username, stationAxisId,…
Majid Azimi
  • 5,575
  • 13
  • 64
  • 113
0
votes
1 answer

running tinylog inside glassfish

I'm trying to run tinylog inside glassfish 3.1.2.2. First I copied tinylog.jar into /glassfish3/glassfish/domains/domain1/lib. Second I created tinylog.properties inside domain1/config. tinylog.properties is like…
Majid Azimi
  • 5,575
  • 13
  • 64
  • 113
-1
votes
2 answers

In graalvm, how to load tinylog.properties with native-image?

I use graalvm to build a jar with tinylog and work very good! But when I use native-image build a exe,tinylog only work with default setting. what can I do let tinylog can load my tinylog.properties with native-image? please~ thanks!
Yang Yang
  • 1
  • 1
-3
votes
1 answer

How to use tinylog with netbeans

I am trying to use tinylog with netbeans. I have some questions regarding that: How to configure tinylog using a property file for netbeans maven web application. How to get logs in JSON format. If I have more than one writers configured then How…
Rahul khandelwal
  • 331
  • 3
  • 14
1 2
3