# ember/template-no-log
💼 This rule is enabled in the 📋 `template-lint-migration` [config](https://github.com/ember-cli/eslint-plugin-ember#-configurations).
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:
```gjs
{{log "debug message"}}
Content
```
```gjs
{{#if condition}}
{{log this.value}}
{{/if}}
```
Examples of **correct** code for this rule:
```gjs
Content
```
```gjs
{{this.log}}
```
```gjs
{{logger "info"}}
```
## Related Rules
- [no-console](https://eslint.org/docs/rules/no-console) from ESLint
## References
- [ember-template-lint no-log](https://github.com/ember-template-lint/ember-template-lint/blob/master/docs/rule/no-log.md)