# In Bonita 6.3, how can I write log to the engine log file in the groovy script

**URL:** <https://community.ofelia.com/t/in-bonita-6-3-how-can-i-write-log-to-the-engine-log-file-in-the-groovy-script/5120>\
**Category:** Q&A\
**Created:** [9 September 2014 00:55 UTC](https://community.ofelia.com/t/in-bonita-6-3-how-can-i-write-log-to-the-engine-log-file-in-the-groovy-script/5120 "2014-09-09T00:55:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![silverhoof](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@silverhoof](https://community.ofelia.com/u/silverhoof)\
**Post date:** [9 September 2014 00:55 UTC](https://community.ofelia.com/t/in-bonita-6-3-how-can-i-write-log-to-the-engine-log-file-in-the-groovy-script/5120/1 "2014-09-09T00:55:11Z")

</div>

I have wrote this in my groovy script used for loop condition check:

import org.bonitasoft.engine.identity.CustomUserInfo;  
import java.util.logging.Logger;

Logger logger = Logger.getLogger(“EscalationChecker”);

logger.info(“Start escalation check”);  
…

But I didn’t see anything in the engine log file. Do I missed something?

---

<div class="post-metadata">

**Author:** ![yannick.lombardi](https://avatars.discourse-cdn.com/v4/letter/y/8e8cbc/32.png) [@yannick.lombardi](https://community.ofelia.com/u/yannick.lombardi)\
**Post date:** [9 September 2014 07:33 UTC](https://community.ofelia.com/t/in-bonita-6-3-how-can-i-write-log-to-the-engine-log-file-in-the-groovy-script/5120/2 "2014-09-09T07:33:55Z")

</div>

Hi,  
If you want to add a log without configuring anything, you can do this :  
  
import java.util.logging.Logger;  
Logger logger= Logger.getLogger(“org.bonitasoft”);  
logger.severe(“This text is in the log”);

If you want a custom log, here is the doc :  
[http://documentation.bonitasoft.com/logging-overview](http://documentation.bonitasoft.com/logging-overview)

---

<div class="post-metadata">

**Author:** ![haris.subasic](https://avatars.discourse-cdn.com/v4/letter/h/5daacb/32.png) [@haris.subasic](https://community.ofelia.com/u/haris.subasic)\
**Post date:** [9 September 2014 07:32 UTC](https://community.ofelia.com/t/in-bonita-6-3-how-can-i-write-log-to-the-engine-log-file-in-the-groovy-script/5120/3 "2014-09-09T07:32:52Z")

</div>

Hello,  
most probably your logging level is by default set to the level that will not take .info in consideration. Try to change the class in the logger creation and to change your method to:  
  
Logger logger = Logger.getLogger(“org.bonitasoft”);  
logger.severe(“Start escalation check”)  
  
Hope this helps,  
Haris

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/6/6b7b18c0478f2645369e82e009b65e3b97f2cc12.svg) [@system](https://community.ofelia.com/u/system)\
**Post date:** [22 May 2017 11:33 UTC](https://community.ofelia.com/t/in-bonita-6-3-how-can-i-write-log-to-the-engine-log-file-in-the-groovy-script/5120/4 "2017-05-22T11:33:15Z")

</div>

Since i am using bonita 6.3, this piece of information is very useful to me. I have faced many difficulties while writing log to engine log file in groovy script. Surely i will try this method which you have mentioned here. [best internet provider](http://www.consumertripleplay.com/att/att-gearing-up-for-quarter-four)
