trace.hh (11168:f98eb2da15a4) | trace.hh (13804:f53a9c35b287) |
---|---|
1/* 2 * Copyright (c) 2014 ARM Limited 3 * All rights reserved 4 * 5 * Copyright (c) 2001-2006 The Regents of The University of Michigan 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 72 unchanged lines hidden (view full) --- 81 * can be implemented to use a logger's underlying ostream, 82 * to provide an ostream which formats the output in some 83 * way, or just set to one of std::cout, std::cerr */ 84 virtual std::ostream &getOstream() = 0; 85 86 /** Set objects to ignore */ 87 void setIgnore(ObjectMatch &ignore_) { ignore = ignore_; } 88 | 1/* 2 * Copyright (c) 2014 ARM Limited 3 * All rights reserved 4 * 5 * Copyright (c) 2001-2006 The Regents of The University of Michigan 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 72 unchanged lines hidden (view full) --- 81 * can be implemented to use a logger's underlying ostream, 82 * to provide an ostream which formats the output in some 83 * way, or just set to one of std::cout, std::cerr */ 84 virtual std::ostream &getOstream() = 0; 85 86 /** Set objects to ignore */ 87 void setIgnore(ObjectMatch &ignore_) { ignore = ignore_; } 88 |
89 /** Add objects to ignore */ 90 void addIgnore(const ObjectMatch &ignore_) { ignore.add(ignore_); } 91 |
|
89 virtual ~Logger() { } 90}; 91 92/** Logging wrapper for ostreams with the format: 93 * <when>: <name>: <message-body> */ 94class OstreamLogger : public Logger 95{ 96 protected: --- 125 unchanged lines hidden --- | 92 virtual ~Logger() { } 93}; 94 95/** Logging wrapper for ostreams with the format: 96 * <when>: <name>: <message-body> */ 97class OstreamLogger : public Logger 98{ 99 protected: --- 125 unchanged lines hidden --- |