ember/template-no-log
April 20, 2026 ยท View on GitHub
๐ผ This rule is enabled in the ๐ template-lint-migration config.
Disallows usage of {{log}} in templates.
The {{log}} helper is useful for debugging but should not be present in production code. Use proper logging libraries or console statements in JavaScript code instead.
Rule Details
This rule disallows the use of {{log}} statements in templates.
Examples
Examples of incorrect code for this rule:
<template>
{{log "debug message"}}
<div>Content</div>
</template>
<template>
{{#if condition}}
{{log this.value}}
{{/if}}
</template>
Examples of correct code for this rule:
<template>
<div>Content</div>
</template>
<template>
{{this.log}}
</template>
<template>
{{logger "info"}}
</template>
Related Rules
- no-console from ESLint