< prev index next >

src/share/vm/logging/logOutput.hpp

Print this page

        

@@ -41,20 +41,23 @@
 
  private:
   static const size_t InitialConfigBufferSize = 256;
   char* _config_string;
   size_t _config_string_buffer_size;
+  char* _option_string;
 
  protected:
   LogDecorators _decorators;
 
   // Clears any previous config description in preparation of reconfiguration.
   void clear_config_string();
   // Adds the tagset on the given level to the config description (e.g. "tag1+tag2=level").
   void add_to_config_string(const LogTagSet* ts, LogLevelType level);
   // Replaces the current config description with the given string.
   void set_config_string(const char* string);
+  // Replaces the current output option with the given string.
+  void set_option_string(const char* string);
 
  public:
   static LogOutput* const Stdout;
   static LogOutput* const Stderr;
 

@@ -68,11 +71,15 @@
 
   const char* config_string() const {
     return _config_string;
   }
 
-  LogOutput() : _config_string(NULL), _config_string_buffer_size(0) {
+  const char* option_string() const {
+    return _option_string;
+  }
+
+  LogOutput() : _config_string(NULL), _config_string_buffer_size(0), _option_string(NULL) {
   }
 
   virtual ~LogOutput();
 
   // If the output can be rotated, trigger a forced rotation, otherwise do nothing.
< prev index next >