Changeset 1082 for cpp/common


Ignore:
Timestamp:
02/18/21 18:56:35 (4 years ago)
Author:
Maciej Komosinski
Message:

Added helper functions for script access

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/common/loggers/loggers.h

    r1075 r1082  
    5555        void send(const char *obj, const char *method, int level, const char *msg);
    5656
     57        int getOptions() { return options; }
    5758        bool isEnabled() { return manager ? true : false; }
    5859        void enable();
     
    99100        string getMessages() const  { return msgs; }
    100101        string getCountSummary() const; ///< return the standard "... error(s), ... warning(s), ... message(s)" text (or empty string if count==0)
    101 
     102        void setStoreOptions(int opts) {options=options&(~(StoreFirstMessage|StoreAllMessages))|(opts&(StoreFirstMessage|StoreAllMessages));}
     103       
    102104        LoggerToMemory(int opts = 0, int minimal_level_to_store = LOG_ERROR) :LoggerBase(opts), minleveltostore(minimal_level_to_store)
    103105        {
Note: See TracChangeset for help on using the changeset viewer.