Book a Demo

Author Topic: Log or Traces in EA  (Read 6180 times)

tzafrir

  • EA User
  • **
  • Posts: 127
  • Karma: +0/-0
    • View Profile
Log or Traces in EA
« on: April 06, 2016, 07:19:16 pm »
Hi,

Is there any Logger API or some trace that can be used in the AddIns?

Tzafrir

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Log or Traces in EA
« Reply #1 on: April 06, 2016, 07:35:13 pm »
!?! ???

Geert

tzafrir

  • EA User
  • **
  • Posts: 127
  • Karma: +0/-0
    • View Profile
Re: Log or Traces in EA
« Reply #2 on: April 06, 2016, 07:46:44 pm »
I will re ask my question,
Is there a place in EA where traces from AddIn can be written to?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Log or Traces in EA
« Reply #3 on: April 06, 2016, 08:19:44 pm »
Yes. View/System Output. You can write into that window.

q.

tzafrir

  • EA User
  • **
  • Posts: 127
  • Karma: +0/-0
    • View Profile
Re: Log or Traces in EA
« Reply #4 on: April 06, 2016, 09:44:12 pm »
Can you give me a short example of such log?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Log or Traces in EA
« Reply #5 on: April 06, 2016, 09:48:29 pm »
Code: [Select]
'name of the output tab
const outPutName = "MyOutput"

sub main
'create output tab
Repository.CreateOutputTab outPutName
Repository.ClearOutput outPutName
Repository.EnsureOutputVisible outPutName
'set timestamp
Repository.WriteOutput outPutName, "Starting to write something in the log" & now(), 0
end sub
main

Geert

tzafrir

  • EA User
  • **
  • Posts: 127
  • Karma: +0/-0
    • View Profile
Re: Log or Traces in EA
« Reply #6 on: April 07, 2016, 04:33:34 am »
thanks