Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 549 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 549 Bytes

tartiflette-plugin-time-it

Allows you to view field time execution in your log as easily as :

type Example {
    aField: String @timeIt
}

By default the timeIt directive will use it's own logger retrieved by logging.getLogger("__name__").

If called with useLogger: false it will use the print statement.

At init time, using the create_engine api, you can pass your own logger to the directive.

engine = await create_engine(sdl, modules=[{"name": "tartiflette_plugin_time_it", "config": {"logger": myLogger()}}])