# Logger in an abstractVisionComponent?

**URL:** <https://forum.inductiveautomation.com/t/logger-in-an-abstractvisioncomponent/5817>\
**Category:** Module Development\
**Created:** [February 7, 2013, 8:20am UTC](https://forum.inductiveautomation.com/t/logger-in-an-abstractvisioncomponent/5817 "2013-02-07T08:20:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [February 7, 2013, 8:20am UTC](https://forum.inductiveautomation.com/t/logger-in-an-abstractvisioncomponent/5817/1 "2013-02-07T08:20:15Z")

</div>

I added a logger in an abstractVisionComponent as follow :  
private static Logger logger = Logger.getLogger(JMapViewerComponent.class);  
logs appear in the ignition Console.

Is it the right way to log for a Vision Component ?  
Another ignition method to use ?

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [February 8, 2013, 4:07pm UTC](https://forum.inductiveautomation.com/t/logger-in-an-abstractvisioncomponent/5817/2 "2013-02-08T16:07:13Z")

</div>

Yes. If you want to expose your logger with a different name by doing the following:`private static Logger logger = Logger.getLogger("MyComponents.MapViewer");`
