---
title: "Discussion on \"Implementing a simple Typescript decorator to easily log input, outputs and time elapsed of methods\" | Hashnode"
description: "Discussion on \"Implementing a simple Typescript decorator to easily log input, outputs and time elapsed of methods\". Why this article?\nIn some specific parts of our application, it can be useful to log the start and the end of methods with some useful information as the inputs, output, the time elapsed, etc...\nThanks to typescript decorators, it can be done with a ..."
url: "https://hashnode.com/posts/implementing-a-simple-typescript-decorator-to-easily-log-input-outputs-and-time-elapsed-of-methods/6150755294bb297e1aad8367"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Implementing a simple Typescript decorator to easily log input, outputs and time elapsed of methods](https://blog.carli.dev/implementing-a-simple-typescript-decorator-to-easily-log-input-outputs-and-time-elapsed-of-methods?utm_source=hashnode&utm_medium=feed)

Why this article? In some specific parts of our application, it can be useful to log the start and the end of methods with some useful information as the inputs, output, the time elapsed, etc... Thanks to typescript decorators, it can be done with a ...

Sep 26, 2021 · 4 min read · blog.carli.dev  
Read the article

-   [#typescript](https://hashnode.com/tag/typescript)
-   [#coding](https://hashnode.com/tag/coding)

## Written by

[Arthur CARLI](https://hashnode.com/@arthurcarli)

@arthurcarli · Lille, France

  
[View profile](https://hashnode.com/@arthurcarli)

Software crafting from the high of France

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
