Erlang/OTP Forums

Author Message

<  Erlang questions mailing list  ~  Mnesia info report

bjnortier
Posted: Wed Jun 11, 2008 12:25 pm Reply with quote
Joined: 30 Aug 2007 Posts: 9
Hi

How do I suppress the info report that is generated when mnesia:stop() is called:

(emacs@lonn0135)30> mnesia:stop().
stopped

=INFO REPORT==== 11-Jun-2008::13:17:59 ===
application: mnesia
exited: stopped
type: temporary

Thanks!
Ben
View user's profile Send private message
bjnortier
Posted: Tue Jun 24, 2008 3:28 pm Reply with quote
Joined: 30 Aug 2007 Posts: 9
I've figured it out, so this reply is for the benefit of those with the same problem:

If you look in the documentaton of the error_logger module, use can use the following function:

tty(Flag) -> ok
Types: Flag = bool()

Enables (Flag == true) or disables (Flag == false) printout of standard events to the tty.
...

Thus, you can disable/enable the info reports (especially useful during setup/teardown of unit tests) by doing an error_logger:tty(false) to disable, and error_logger:tty(true) to re-enable

Cheers
Ben
View user's profile Send private message
wuji
Posted: Mon Aug 27, 2012 3:50 am Reply with quote
User Joined: 10 Aug 2012 Posts: 654
into the air and one into the ground.But the gunfire gunfire Cheap Ralph Lauren Shirts gunfire did not not scare the chimps, and when they
Cussons, he got back in his car, he said. Nikki Nikki cheap polo shirts Nikki jumped on the hood of the car and started
the windshield.Cussons said he fired one round through the glass glass Cheap Ralph Lauren Shirts glass and injured the chimp. The other chimpanzee immediately became
and the chimps moved away, allowing Cussons and first responders responders cheap Ralph Lauren responders to get to Oberle, he said.First responder Lloyd Krause
when he got to Oberle, the University of Texas San San cheap Ralph Lauren Polo San Antonio student was stripped down and the only way
knew he was alive was that his chest was moving."The moving."The [h4]cheap designer *beep*[/h4] moving."The chimps were still out there. ... He was curled
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum