< prev index next >

src/share/vm/logging/logFileOutput.hpp

Print this page




  68   char *make_file_name(const char* file_name, const char* pid_string, const char* timestamp_string);
  69 
  70   bool should_rotate() {
  71     return _file_count > 0 && _rotate_size > 0 && _current_size >= _rotate_size;
  72   }
  73 
  74   void increment_file_count() {
  75     _current_file++;
  76     if (_current_file == _file_count) {
  77       _current_file = 0;
  78     }
  79   }
  80 
  81  public:
  82   LogFileOutput(const char *name);
  83   virtual ~LogFileOutput();
  84   virtual bool initialize(const char* options, outputStream* errstream);
  85   virtual int write(const LogDecorations& decorations, const char* msg);
  86   virtual int write(LogMessageBuffer::Iterator msg_iterator);
  87   virtual void force_rotate();

  88 
  89   virtual const char* name() const {
  90     return _name;
  91   }
  92 
  93   static void set_file_name_parameters(jlong start_time);
  94 };
  95 
  96 #endif // SHARE_VM_LOGGING_LOGFILEOUTPUT_HPP


  68   char *make_file_name(const char* file_name, const char* pid_string, const char* timestamp_string);
  69 
  70   bool should_rotate() {
  71     return _file_count > 0 && _rotate_size > 0 && _current_size >= _rotate_size;
  72   }
  73 
  74   void increment_file_count() {
  75     _current_file++;
  76     if (_current_file == _file_count) {
  77       _current_file = 0;
  78     }
  79   }
  80 
  81  public:
  82   LogFileOutput(const char *name);
  83   virtual ~LogFileOutput();
  84   virtual bool initialize(const char* options, outputStream* errstream);
  85   virtual int write(const LogDecorations& decorations, const char* msg);
  86   virtual int write(LogMessageBuffer::Iterator msg_iterator);
  87   virtual void force_rotate();
  88   virtual void describe(outputStream *out, size_t index);
  89 
  90   virtual const char* name() const {
  91     return _name;
  92   }
  93 
  94   static void set_file_name_parameters(jlong start_time);
  95 };
  96 
  97 #endif // SHARE_VM_LOGGING_LOGFILEOUTPUT_HPP
< prev index next >