Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC] Features/configurable log name #1

Closed
wants to merge 2 commits into from

Conversation

richo
Copy link

@richo richo commented Mar 3, 2014

So this is a quick and dirty stab at enabling a workflow I need: Two weechats running. One for a work server that likes to do lots of force joining and generally messing with my client, and one for all the other clients.

Before this, I was doing something like;

weechat
# Set that up for personal
mv ~/.weechat/weechat.{,personal.}log
weechat
# setup for work

but it's pretty awkward. With this patch I can just do

WEECHAT_LOG_NAME=work.log weechat and have it do the right thing. Thoughts?

This allows running more than one weechat at a time without awkwardly
mv(1)'ing the log files out from under it, or somesuch.
@richo
Copy link
Author

richo commented Mar 3, 2014

EDIT: Also, how should I go about emitting a useful warning? Before this patch there was only one real error condition. Should I just refactor log_init and have more than one return value?

@flashcode
Copy link
Member

Running two different WeeChat with same home can lead to problems (the test is made on weechat.log, but this file is not really a problem).
Bypassing this test will bring problems with config files, log files, and files created by plugins, like scripts, DCC (xfer), ...

@flashcode
Copy link
Member

By the way, there's a task planned to have separate directories: https://savannah.nongnu.org/task/?10934

@flashcode flashcode closed this Mar 4, 2014
@Bysmyyr Bysmyyr mentioned this pull request Oct 30, 2017
NetSysFire added a commit to NetSysFire/weechat that referenced this pull request Nov 19, 2023
NetSysFire added a commit to NetSysFire/weechat that referenced this pull request Nov 19, 2023
NetSysFire added a commit to NetSysFire/weechat that referenced this pull request Nov 19, 2023
NetSysFire added a commit to NetSysFire/weechat that referenced this pull request Nov 19, 2023
NetSysFire added a commit to NetSysFire/weechat that referenced this pull request Nov 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request won't fix This will not be implemented/fixed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants