Skip to content

logging… #18

Description

I would like to see output on the JS side looking like:

layout …  Ok
    [I] preparing XYZ
    [W] problem ..
    [I] finishing XYZ

rendering … Error
    [I] allocating resources
    [I] collecting glyphs
    drawing formula … Ok
        [I] rasterizing glyphs
        [I] painting glyphs
    [E] cannot save image

this might be created by the following calls

let layout_log = log.create_context("layout");
layout_log.info("preparing {}", z.name);
layout_log.warn("problem {:d}", …);
layout_log.info("finishing {}", z.name);

let render_log = log.create_context("rendering");
render_log.info("allocating resouces");
let drawing_log = render_log.create_context("drawing formula");
drawing_log.info("rasterizing glyphs");
drawing_log.info("painting glyphs");

render_log.error("cannot save image");

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions