Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-4035

[ProgressionTracker] Be able to set a specific logger from scripts

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.LATER
    • None
    • None
    • None
    • 2 - Long term
    • 2 - Normal

      By default, ScriptHandler is used, it is not convenient.
      In scripts, we create a specific logger for the script:

      let logger = Ametys.getLogger("my.category", { "filename": "myFile", "level": "info" });

      Then we should be able to add it to the tracker like this (or another way):

      Ametys.progressionTracker.setLogger(logger);

            Unassigned Unassigned
            bmaurel Bérénice Maurel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: