GithubHelp home page GithubHelp logo

spaceafteryou / swp-logger-redirector Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 45 KB

Bypassing log overwrite protection.

License: Do What The F*ck You Want To Public License

C++ 100.00%
soulworker

swp-logger-redirector's Introduction

Stand With Ukraine

SoulWorker Plugin: Logger Redirector

What the...

This is an example of a plugin for the plugin loader. It can also be useful when developing your own plugins. Its task is to redirect the game logs to spdlog

image

How to

First of all, after the first launch of the game with the loader, in the folder with the game there will be a file: configs/loader.json.

{
  // ...

  "console": {
    // An optional step. This will enable the terminal.
    // Without it, the output will only go to a file in the logs folder.
    // With this both to the terminal and to the file.
    "use": true,

    // This will prevent the terminal closing,
    // after the game is closed.
    "leave": true,
  },

  // Logging level.
  "logger": {
    "level": "trace"
  }

  // ...
}

The available logging levels can be found in the source code of spdlog

  • Unpack the latest available archive from the release page into your game folder. Replace the files if necessary
  • Also, you need to install a plugin launcher or something else to run the game with plugin support.

For Developers

  • vcpkg is needed for dependency management. If you don't want to fuck with it (GLHF), you can install dependencies yourself. They are listed in the vcpkg.json file under the dependencies property

Your place is here

Discord

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.