0

Is there a way to disable logging in raylib-j INFO: Initializing raylib 4.2 INFO: Supported raylib modules: INFO: > rcore:..... loaded (mandatory) INFO: > rlgl:...... loaded (mandatory) INFO: > rshapes:... loaded (optional) INFO: > rtextures:. loaded (optional) INFO: > rtext:..... loaded (optional) INFO: > rmodels:... loaded (optional) INFO: > raudio:.... loaded (optional) [0.942s][error][attach] failure (232) writing result of operation jcmd to pipe \\.\pipe\javatool-635549885 INFO: DISPLAY: Device initialized successfully INFO: > Display size: 1366 x 768 INFO: > Render size: 600 x 400 INFO: > Screen size: 600 x 400 INFO: > Viewport offsets: 0.0, 0.0

i tried to disable supportTraceLog and supportTracelogDebug in my main class, but it didn't work:

raylib.config.setSupportTracelog(false); raylib.config.setSupportTracelogDebug(false);

Also i tried to find a method like SetTraceLogLevel(); but there wasn't any.

Here is what I tried:

import com.raylib.java.Raylib;
import static com.raylib.java.core.Color.\*;

public class Main {
public static void main(String\[\] args) {
    Raylib raylib = new Raylib(600, 400, "Raylib-J Example");
    raylib.config.setSupportTracelog(false);
    raylib.config.setSupportTracelogDebug(false);
    TickRate tickRate = new TickRate();
    Player player = new Player(300, 200);

    raylib.core.SetTargetFPS(0);

    while (!raylib.core.WindowShouldClose()) {
        tickRate.update();

        raylib.core.BeginDrawing();
        raylib.core.ClearBackground(BLACK);
        player.create(raylib, tickRate.getDeltaTime());
        raylib.text.DrawFPS(10, 10);
        raylib.core.EndDrawing();
    }
    raylib.core.CloseWindow();
}
2
  • You can simply set com.raylib on WARN or ERROR in your LOG configuration Commented May 2 at 11:55
  • what do you mean use WARN or ERROR with these methods ` raylib.config.setSupportTracelog(false); raylib.config.setSupportTracelogDebug(false); ` when you wrote "You can simply set com.raylib on WARN or ERROR in your LOG configuration", if yes these methods require only boolean not enum Commented May 2 at 14:39

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.